This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
powerpc crt1.o
- From: Alan Modra <amodra at gmail dot com>
- To: libc-alpha at sourceware dot org
- Cc: "Ryan S. Arnold" <ryan dot arnold at gmail dot com>,Steven Munroe <munroesj at linux dot vnet dot ibm dot com>
- Date: Wed, 13 Mar 2013 16:07:37 +1030
- Subject: powerpc crt1.o
.eh_frame info in crt1.o isn't useful and triggers a gold bug:
http://sourceware.org/bugzilla/show_bug.cgi?id=14675
This patch stops us generating it for powerpc.
2013-03-13 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.
diff --git a/sysdeps/powerpc/powerpc32/start.S b/sysdeps/powerpc/powerpc32/start.S
index 6c69705..a26450d 100644
--- a/sysdeps/powerpc/powerpc32/start.S
+++ b/sysdeps/powerpc/powerpc32/start.S
@@ -36,6 +36,13 @@
#include <sysdep.h>
#include "bp-sym.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 210779c..efb5a7d 100644
--- a/sysdeps/powerpc/powerpc64/start.S
+++ b/sysdeps/powerpc/powerpc64/start.S
@@ -36,6 +36,13 @@
#include <sysdep.h>
#include "bp-sym.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"
--
Alan Modra
Australia Development Lab, IBM