aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2004-10-31 05:55:17 +0000
committerH. Peter Anvin <hpa@zytor.com>2004-10-31 05:55:17 +0000
commit648abf248cbaad9958b53dddcfd3f600d105a6a1 (patch)
tree61b418e609e19c72d1165333d8262d113842381d
parente380cc91bc7178e4d85b85e56ad32927d2786cf8 (diff)
downloadklibc-648abf248cbaad9958b53dddcfd3f600d105a6a1.tar.gz
Fix shared libraries on x86-64.klibc-0.192
-rw-r--r--klibc/arch/x86_64/MCONFIG6
1 files changed, 6 insertions, 0 deletions
diff --git a/klibc/arch/x86_64/MCONFIG b/klibc/arch/x86_64/MCONFIG
index f3c87410a6c8c..a2a23676336b8 100644
--- a/klibc/arch/x86_64/MCONFIG
+++ b/klibc/arch/x86_64/MCONFIG
@@ -20,3 +20,9 @@ OPTFLAGS = -Os -fno-asynchronous-unwind-tables -fomit-frame-pointer \
BITSIZE = 64
LDFLAGS = -m elf_x86_64
+# Extra linkflags when building the shared version of the library
+# This address needs to be reachable using normal inter-module
+# calls, and work on the memory models for this architecture
+# 2 MB - normal binaries start at 4 MB
+SHAREDFLAGS = -Ttext 0x00200200
+