summaryrefslogtreecommitdiff
path: root/.topmsg
blob: a725712dcd7c4c4b1c335c782176c360e7993181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 0x8000000 for now
as a workaround.

id:"20130211040854.GN5926@type.youpi.perso.aquilenet.fr"

<http://darnassus.sceen.net/~hurd-web/open_issues/gcc/pie/>

YYYY-MM-DD  Samuel Thibault  <samuel.thibault@ens-lyon.org>
	    Thomas Schwinge  <thomas@codesourcery.com>

	* sysdeps/mach/hurd/brk.c (init_brk): Fix for PIE executables.
	* misc/tst-sbrk.c: New file.
	* misc/tst-sbrk-pie.c: Likewise.
	* misc/tst-sbrk-static.c: Likewise.
	* misc/Makefile (tests): Add tst-sbrk, tst-sbrk-pie, tst-sbrk-static.
	(tests-pie): Add tst-sbrk-pie.
	(tests-static): Add tst-sbrk-static.