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:
parent
7564c4ad9a
commit
a430b967b5
@ -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_ */
|
||||
|
@ -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_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user