powerpc crt1.o
Ryan S. Arnold
ryan.arnold@gmail.com
Wed Mar 13 14:16:00 GMT 2013
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
More information about the Libc-alpha
mailing list