Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 30 Dec 2019 18:12:42 +0000 (18:12 +0000)
committerAurelien Jarno <aurel32@debian.org>
Mon, 30 Dec 2019 18:12:42 +0000 (18:12 +0000)
commitd16b47b84087a9f25b966359a5d9da960582cacd
tree733ee25b8ba761f8fd3342e22f8501438d26f153
parent2b348a462e07971cbe46db312e4d2e1afcbb45b4
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