aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-03-28 12:16:28 -0500
committerRyan S. Arnold <rsa@linux.vnet.ibm.com>2013-03-28 12:16:28 -0500
commitb0f1246ab45b6d27e2bba64aa8dfe407ac740537 (patch)
tree6fe4031d0740221fd17d15cc1edd958d8aaab7c4 /sysdeps
parentfbbe2b9a1f04c00ea0f8820a545bd4ca780ffa30 (diff)
downloadglibc-b0f1246ab45b6d27e2bba64aa8dfe407ac740537.zip
glibc-b0f1246ab45b6d27e2bba64aa8dfe407ac740537.tar.gz
glibc-b0f1246ab45b6d27e2bba64aa8dfe407ac740537.tar.bz2
PowerPC: .eh_frame info in crt1.o isn't useful and triggers gold bug 14675.
The .eh_frame info in crt1.o isn't useful and this patch prevents it from being generated on PowerPC. It triggers the following gold bug: http://sourceware.org/bugzilla/show_bug.cgi?id=14675
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/powerpc/powerpc32/start.S7
-rw-r--r--sysdeps/powerpc/powerpc64/start.S7
2 files changed, 14 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc32/start.S b/sysdeps/powerpc/powerpc32/start.S
index 9d5f8d3..f04446b 100644
--- a/sysdeps/powerpc/powerpc32/start.S
+++ b/sysdeps/powerpc/powerpc32/start.S
@@ -35,6 +35,13 @@
#include <sysdep.h>
+/* We do not want .eh_frame info for crt1.o since crt1.o is linked
+ before crtbegin.o, the file defining __EH_FRAME_BEGIN__. */
+#undef cfi_startproc
+#define cfi_startproc
+#undef cfi_endproc
+#define cfi_endproc
+
/* These are the various addresses we require. */
#ifdef PIC
.section ".data"
diff --git a/sysdeps/powerpc/powerpc64/start.S b/sysdeps/powerpc/powerpc64/start.S
index ec0fd30..09ab464 100644
--- a/sysdeps/powerpc/powerpc64/start.S
+++ b/sysdeps/powerpc/powerpc64/start.S
@@ -35,6 +35,13 @@
#include <sysdep.h>
+/* We do not want .eh_frame info for crt1.o since crt1.o is linked
+ before crtbegin.o, the file defining __EH_FRAME_BEGIN__. */
+#undef cfi_startproc
+#define cfi_startproc
+#undef cfi_endproc
+#define cfi_endproc
+
/* These are the various addresses we require. */
#ifdef PIC
.section ".data.rel.ro.local","aw"