aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-02-27 18:52:11 +0000
committerMichael Brown <mcb30@ipxe.org>2021-02-27 19:25:02 +0000
commit040cdd0c658a49694b17a1c0b5439d0bd7805242 (patch)
treeffbc77fab80b81a804d28fd7a36fe114c06746f0 /src/arch
parent16d95227a4b92bba068b43070545b96ce0a90e14 (diff)
downloadipxe-040cdd0c658a49694b17a1c0b5439d0bd7805242.zip
ipxe-040cdd0c658a49694b17a1c0b5439d0bd7805242.tar.gz
ipxe-040cdd0c658a49694b17a1c0b5439d0bd7805242.tar.bz2
[linux] Add a prefix to all symbols to avoid future name collisions
Allow for the possibility of linking to platform libraries for the Linux userspace build by adding an iPXE-specific symbol prefix. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/Makefile.linux2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86/Makefile.linux b/src/arch/x86/Makefile.linux
index 1faf847..3740cc8 100644
--- a/src/arch/x86/Makefile.linux
+++ b/src/arch/x86/Makefile.linux
@@ -3,6 +3,8 @@ MEDIA = linux
# enable valgrind
CFLAGS += -UNVALGRIND
+SYMBOL_PREFIX = _ipxe__
+
INCDIRS += arch/x86/include/linux
SRCDIRS += interface/linux
SRCDIRS += drivers/linux