i386: move hard-coded load address for PIE below default linker base
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 22 Oct 2022 20:03:17 +0000 (23:03 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 25 Oct 2022 16:00:44 +0000 (19:00 +0300)
commit5f00525dfca4b1fbb0f8296a411bf57c23bce694
tree393d512b33ece3f9b34c524e9cadb95b2691c4bf
parentca18304ea491263389b8b1239e9b5b21d80da7f5
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
sys/x86/include/elf.h