summaryrefslogtreecommitdiffstats
path: root/sys/sun4v
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-10-18 13:08:15 +0000
committermarius <marius@FreeBSD.org>2009-10-18 13:08:15 +0000
commit27970b1ade36604c452b9e58e7b66d525932fb17 (patch)
tree37c1386dc769cde1b6e8a4d97c4070e00923681a /sys/sun4v
parent2eb5677d22f46ebdb90a9deb2ca9aedd32e0eadd (diff)
downloadFreeBSD-src-27970b1ade36604c452b9e58e7b66d525932fb17.zip
FreeBSD-src-27970b1ade36604c452b9e58e7b66d525932fb17.tar.gz
Change the load base to below 2GB so PIE binaries work including when
compiled to use the Medium/Low code model, which we currently default to for the userland. GNU/Linux has moved their default to Medium/Middle some time ago, which probably explains why the current GNU ld(1) uses a base in the range between 32 and 44 bits instead. Submitted by: kib
Diffstat (limited to 'sys/sun4v')
-rw-r--r--sys/sun4v/include/elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sun4v/include/elf.h b/sys/sun4v/include/elf.h
index d35d736..2a66670 100644
--- a/sys/sun4v/include/elf.h
+++ b/sys/sun4v/include/elf.h
@@ -97,6 +97,6 @@ __ElfType(Auxinfo);
#define ELF_TARG_MACH ELF_ARCH
#define ELF_TARG_VER 1
-#define ET_DYN_LOAD_ADDR 0x150000000
+#define ET_DYN_LOAD_ADDR 0x100000
#endif /* !_MACHINE_ELF_H_ */
OpenPOWER on IntegriCloud