Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 28 Feb 2019 05:56:01 +0000 (05:56 +0000)
committerSamuel Thibault <sthibault@debian.org>
Thu, 28 Feb 2019 05:56:01 +0000 (05:56 +0000)
commitb5998d0a49f57d6d32fd613b406a42a10020fafa
treec2c52b202db9315817e4bf2e8f92af0b0dbbe651
parentefae4d4945ad38c6c9da179d64d4dbdaf0d18afd
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