Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 8 Sep 2019 20:34:02 +0000 (21:34 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sun, 8 Sep 2019 20:34:02 +0000 (21:34 +0100)
commit7fead870088714f52dfd68eb977730c45a670af4
treece4eac10cf319c9df4c1f9d6a14ac97149d424a9
parentf473c005f2e2fa2f7fe7cb14d4e872bb670029e1
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