Author: marius Date: Sun Oct 18 13:08:15 2009 New Revision: 198203 URL: http://svn.freebsd.org/changeset/base/198203
Log: 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 Modified: head/sys/sparc64/include/elf.h head/sys/sun4v/include/elf.h Modified: head/sys/sparc64/include/elf.h ============================================================================== --- head/sys/sparc64/include/elf.h Sun Oct 18 12:57:48 2009 (r198202) +++ head/sys/sparc64/include/elf.h Sun Oct 18 13:08:15 2009 (r198203) @@ -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_ */ Modified: head/sys/sun4v/include/elf.h ============================================================================== --- head/sys/sun4v/include/elf.h Sun Oct 18 12:57:48 2009 (r198202) +++ head/sys/sun4v/include/elf.h Sun Oct 18 13:08:15 2009 (r198203) @@ -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_ */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"