aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.linux
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-01-22 12:05:14 +0000
committerMichael Brown <mcb30@ipxe.org>2023-01-22 12:38:03 +0000
commit475c0dfa8e5b841ff29d3fbf7d6828e3cdd05ad5 (patch)
tree6b3dc78383e712a409892ca0c38cf868219974d4 /src/Makefile.linux
parenta99e435c8e24887ce80c322029ba23103e00d1c2 (diff)
downloadipxe-475c0dfa8e5b841ff29d3fbf7d6828e3cdd05ad5.zip
ipxe-475c0dfa8e5b841ff29d3fbf7d6828e3cdd05ad5.tar.gz
ipxe-475c0dfa8e5b841ff29d3fbf7d6828e3cdd05ad5.tar.bz2
[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 85d9c64..b278c8c 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