[klibc] [PATCH 2/2] add KLIBCSHAREDFLAGS for IA64

Thorsten Glaser tg at mirbsd.org
Fri May 18 09:30:18 PDT 2012


while this doesn't fix the problem that shared doesn't work there,
it at least ensures that klibc.so and (e.g.) sh.shared do not try
to occupy the same virtual addresses

mips64 is also missing KLIBCSHAREDFLAGS and needs treatment

Signed-off-by: Thorsten Glaser <tg at mirbsd.org>
---
 usr/klibc/arch/ia64/MCONFIG |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/usr/klibc/arch/ia64/MCONFIG b/usr/klibc/arch/ia64/MCONFIG
index ad868ef..5b2eac6 100644
--- a/usr/klibc/arch/ia64/MCONFIG
+++ b/usr/klibc/arch/ia64/MCONFIG
@@ -9,3 +9,13 @@
 
 KLIBCOPTFLAGS += -Os
 KLIBCBITSIZE  = 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
+# Normal shared libraries are at 0x2000 0000 0000 0000,
+# but something of klibc sits already there,
+# so use 0x2100 0000 0000 0000 and 0x2200 0000 0000 0000
+# for the shared version of klibc (executables have code
+# at 0x4000 0000 0000 0000 and data at 0x6000 0000 0000 0000).
+KLIBCSHAREDFLAGS = -Ttext 0x2100000000000000 -Tdata 0x2200000000000000
-- 
1.7.10



More information about the klibc mailing list