Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 3 Jul 2016 19:59:34 +0000 (19:59 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 3 Jul 2016 19:59:34 +0000 (19:59 +0000)
commit94d4a65db2e133eb3cdeadaee5a53a403d5dff1a
treeddb8fa7af451d266478951a6baa7195f6819d10c
parent4e52f4bc5d225eaa90093567ecd80495af0bf1e0
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