diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2013-02-12 22:42:28 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2013-02-12 22:42:28 +0100 |
commit | f15f963f871f021914bbe7f2ff57ad5868fb9cbf (patch) | |
tree | ee83bfda9ecd5f98ce41f137fe60ee5f22b0ae03 /.topmsg | |
parent | 2d9f69a5b681e856fef0212c826e965fc8653427 (diff) |
* 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.
Diffstat (limited to '.topmsg')
-rw-r--r-- | .topmsg | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -1,4 +1,3 @@ -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 @@ -6,4 +5,17 @@ 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> +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. |