This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: powerpc crt1.o
- From: "Ryan S. Arnold" <ryan dot arnold at gmail dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: libc-alpha <libc-alpha at sourceware dot org>, Steven Munroe <munroesj at linux dot vnet dot ibm dot com>
- Date: Wed, 13 Mar 2013 09:15:56 -0500
- Subject: Re: powerpc crt1.o
- References: <20130313053737.GA3230@bubble.grove.modra.org>
On Wed, Mar 13, 2013 at 12:37 AM, Alan Modra <amodra@gmail.com> wrote:
> .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
This is fine with me.
Ryan