Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 12 Jan 2019 17:50:25 +0000 (17:50 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sat, 12 Jan 2019 17:50:25 +0000 (17:50 +0000)
commit22d3ff8193f7cd64d87d5ce459d04143a0b030d3
treebcf42bb55fd50e7072ee78b710f5985d97d9f17a
parentdf16f27dff083a32798f7c602bd10e5e593e9233
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