]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
PowerPC: .eh_frame info in crt1.o isn't useful and triggers gold bug 14675.
authorAlan Modra <amodra@gmail.com>
Thu, 28 Mar 2013 17:16:28 +0000 (12:16 -0500)
committerRyan S. Arnold <rsa@linux.vnet.ibm.com>
Thu, 28 Mar 2013 17:16:28 +0000 (12:16 -0500)
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

ChangeLog
sysdeps/powerpc/powerpc32/start.S
sysdeps/powerpc/powerpc64/start.S

index 390c5cb19c31fbbbbef292921326db74580040d8..183bedfae8799d26a52a2930c3b15721cf4790d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-03-28  Alan Modra  <amodra@gmail.com>
+
+       * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
+       Define as empty.
+       * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
+       Likewise.
+
 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
 
        [BZ #15214]
index 9d5f8d344e72d7d58ad88c0afd529212615d78d8..f04446bbbab08c119006e1d1b9314d474225b4a4 100644 (file)
 
 #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"
index ec0fd30e746a417c7d08905c8a9f8a69b4751256..09ab464cbcda2b306354005b557905f8a41b3e27 100644 (file)
 
 #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"