[PATCH] Use R_SPARC_UA32 for unaligned data relocs
Richard Henderson
rth@redhat.com
Fri May 25 14:04:00 GMT 2001
On Wed, May 23, 2001 at 02:03:06AM -0400, Jeff Sturm wrote:
> Beginning with the new EH ABI, GCC regularly emits unaligned relocations
> in dwarf sections.
Not "beginning with the new EH ABI" -- gcc has *always* done this.
I presume that it wasn't noticed because gnu ld.so handles the
unaligned R_SPARC_32, and gas isn't used that often on solaris.
> + if (sparc_no_align_cons && nbytes == 4)
> + r = BFD_RELOC_SPARC_UA32;
You also need to handle R_SPARC_UA64 and R_SPARC_UA16.
r~
More information about the Binutils
mailing list