This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: powerpc crt1.o


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]