This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: [PATCH] Use R_SPARC_UA32 for unaligned data relocs


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~


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