diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-07-22 15:46:11 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-07-22 17:49:00 +0200 |
commit | 53b56b1101fc9bb4f295f23f54e7e19f8da8da16 (patch) | |
tree | fc68e27b0cca8a919abba8f7b421f8bde56bd835 /.topmsg | |
parent | b23750a7f4117cba2c4eb57bdbbf51697cdd9262 (diff) |
Fix stack switching at initialization time.
Diffstat (limited to '.topmsg')
-rw-r--r-- | .topmsg | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -1,16 +1,22 @@ From: Thomas Schwinge <thomas@schwinge.name> -Subject: [PATCH] init-first.c +Subject: [PATCH] Avoiding `init-first.c' miscompilations. -init-first.c vs. GCC 4.1. +Needed when (cross-)compiling with GCC 4.5.1. -Needed for HEAD and glibc-2_7-branch. +2011-07-22 Ludovic Courtès <ludo@gnu.org> -For building with GCC 4.1 (and newer, most probably). + * sysdeps/mach/hurd/i386/init-first.c (init): Use + `__builtin_return_address' and `__builtin_frame_address' instead + of making assumptions about the location of the return address + relative to DATA. + +The patch below Was needed for when building with GCC 4.1, perhaps +because of a compiler bug in handling `__builtin_return_address'. +This may be unnecessary with newer GCCs. Reported at <http://savannah.gnu.org/bugs/?17647>. Continued at <http://lists.gnu.org/archive/html/bug-hurd/2006-11/msg00249.html>. - 2007-07-22 Thomas Schwinge <tschwinge@gnu.org> * sysdeps/mach/hurd/i386/init-first.c: Undo parts of Roland's `r 1.43' |