HomeFreeBSD

i386: move hard-coded load address for PIE below default linker base

Description

i386: move hard-coded load address for PIE below default linker base

both for i386 native and compat32 amd64. We know the ld-elf.so.1 size
in advance, it fits there. Trying to push it up after the end of a
binary cannot work reliably and eventually fail for large binaries.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D37085

Details

Provenance
kibAuthored on Oct 22 2022, 8:03 PM
Differential Revision
D37085: arm, arm64, i386: tweak hard-coded load addresses for PIE binaries
Parents
rGca18304ea491: arm, arm64: tweak hard-coded load addresses for PIE binaries
Branches
Unknown
Tags
Unknown