Fix sbrk in PIE binaries
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 25 Mar 2020 12:56:56 +0000 (12:56 +0000)
committerAurelien Jarno <aurel32@debian.org>
Wed, 25 Mar 2020 12:56:56 +0000 (12:56 +0000)
commit1cf41bceeb006ed56339fccef9be49f36b6efc91
treec6f1a3f6c3ab28a4e800a6f00df1daa4a10b5c9d
parenta1e721119e463228b67adc18a6570f5e85fa0cfc
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