[PATCH]: gold sparc unaligned...
David Miller
davem@davemloft.net
Thu Feb 11 21:23:00 GMT 2010
From: Eric Botcazou <ebotcazou@adacore.com>
Date: Thu, 11 Feb 2010 22:13:13 +0100
> and config/sparc/sol2.h has:
>
> /* Select a format to encode pointers in exception handling data. CODE
> is 0 for data, 1 for code labels, 2 for function pointers. GLOBAL is
> true if the symbol may be affected by dynamic relocations.
>
> Some Solaris dynamic linkers don't handle unaligned section relative
> relocs properly, so force them to be aligned. */
> #ifndef HAVE_AS_SPARC_UA_PCREL
> #define ASM_PREFERRED_EH_DATA_FORMAT(CODE,GLOBAL) \
> ((flag_pic || GLOBAL) ? DW_EH_PE_aligned : DW_EH_PE_absptr)
> #endif
>
> and HAVE_AS_SPARC_UA_PCREL isn't defined.
Dwarf2 is such a mess on sparc because of all of these unaligned
relocation issues.
Thanks for reporting all of this detective work Eric.
More information about the Binutils
mailing list