Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 25 Nov 2016 22:09:39 +0000 (22:09 +0000)
committerAurelien Jarno <aurel32@debian.org>
Fri, 25 Nov 2016 22:09:39 +0000 (22:09 +0000)
commitddbeaa7dc51887429342e5c58fefeb64cb5f53a9
tree4b810b862b99f6cab1149cd3f34ce45455b9fd48
parenta21cb4ffc5339c3e92d1d05db9bf1d523b039272
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