5f5022daee
Xen is a hypervisor which supports running multiple guest operating systems on a single machine. Guest OSes (also called "domains") can be either paravirtualised (i.e. make hypercalls in order to access hardware), run in HVM (Hardware Virtualisation Mode) where they will be presented with virtual devices, or a combination where they use hypercalls to access hardware but manage memory themselves. At boot, the xen kernel is loaded along with the guest kernel for the first domain (called domain0). domain0 has privileges to access the physical hardware (PCI and ISA devices), administrate other domains and provide virtual devices (disks and network) to other domains.
18 lines
675 B
C
18 lines
675 B
C
$NetBSD: patch-.._seabios-rel-1.14.0_src_string.c,v 1.1 2021/04/18 12:31:26 bouyer Exp $
|
|
|
|
when the code is compiled -fwhole-program, memcpy() will be ommitted by gcc
|
|
because nothing in the file references it. Later the link fails with
|
|
undefined references to memcpy().
|
|
Force the inclusion with (externally_visible) attribute
|
|
|
|
--- ../seabios-rel-1.14.0/src/string.c.orig 2021-04-17 22:32:25.409876075 +0200
|
|
+++ ../seabios-rel-1.14.0/src/string.c 2021-04-17 22:32:39.873615679 +0200
|
|
@@ -149,7 +149,7 @@
|
|
memcpy(d_fl, s_fl, len);
|
|
}
|
|
|
|
-void *
|
|
+__attribute__((externally_visible)) void *
|
|
#undef memcpy
|
|
memcpy(void *d1, const void *s1, size_t len)
|
|
#if MODESEGMENT == 0
|