summaryrefslogtreecommitdiffstats
path: root/src/Makefile.linux
diff options
context:
space:
mode:
authorMichael Brown2023-01-22 13:05:14 +0100
committerMichael Brown2023-01-22 13:38:03 +0100
commit475c0dfa8e5b841ff29d3fbf7d6828e3cdd05ad5 (patch)
tree6b3dc78383e712a409892ca0c38cf868219974d4 /src/Makefile.linux
parent[efi] Do not rely on ProcessorBind.h when building host binaries (diff)
downloadipxe-475c0dfa8e5b841ff29d3fbf7d6828e3cdd05ad5.tar.gz
ipxe-475c0dfa8e5b841ff29d3fbf7d6828e3cdd05ad5.tar.xz
ipxe-475c0dfa8e5b841ff29d3fbf7d6828e3cdd05ad5.zip
[linux] Centralise the linker script for Linux binaries
Reduce duplication between i386 and x86_64 by providing a single shared linker script that both architectures can include. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.linux')
-rw-r--r--src/Makefile.linux4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile.linux b/src/Makefile.linux
index 85d9c643..b278c8c0 100644
--- a/src/Makefile.linux
+++ b/src/Makefile.linux
@@ -8,6 +8,10 @@ SYMBOL_PREFIX = _ipxe__
#
CFLAGS += -UNVALGRIND
+# The Linux linker script
+#
+LDSCRIPT = scripts/linux.lds
+
# Use a two-stage link
#
LDFLAGS += -r -d