Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 22 Jul 2020 22:26:24 +0000 (23:26 +0100)
committerAurelien Jarno <aurel32@debian.org>
Wed, 22 Jul 2020 22:26:24 +0000 (23:26 +0100)
commita70690972aa5bd6f30294f413e42ad7e82abd8b4
tree37eb6e64b932f3d8de5eb51c03b9ab92862ac214
parent93351cdb3d46be61bad3c077cee246a79a2c7223
Fix sbrk in PIE binaries

In PIE mode, the program gets loaded at very low address, and thus _end is very
low, just before libraries, and thus initializing the brk to it does not make
sense, since there is no room left there. Hardcode the brk to 0x8000000 for now
as a workaround.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-pie-sbrk.diff
sysdeps/mach/hurd/brk.c