blob: 98af188bb1e225a708dac27432ebba202ce7d164 (
plain)
1
2
3
4
5
6
7
8
9
|
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: 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 0x800000 for now
as a workaround.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
|