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
This commit is contained in:
Marius Strobl 2009-10-18 13:08:15 +00:00
parent 7564c4ad9a
commit a430b967b5
2 changed files with 2 additions and 2 deletions

View File

@ -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_ */

View File

@ -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_ */