Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 9 Feb 2019 17:34:27 +0000 (17:34 +0000)
committerSamuel Thibault <sthibault@debian.org>
Sat, 9 Feb 2019 17:34:27 +0000 (17:34 +0000)
commiteb786db9f6b1a9a8b7ec2f85c6eed4274d36737b
tree2129f1b02523a998947fba33f2cbba08dd01e197
parenta34236a2d4b2d556848b348f867919c5768f80ba
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