This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Use R_SPARC_UA32 for unaligned data relocs
- To: Jeff Sturm <jsturm at one-point dot com>
- Subject: Re: [PATCH] Use R_SPARC_UA32 for unaligned data relocs
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 28 May 2001 11:20:07 +0100
- Cc: binutils at sources dot redhat dot com
- References: <Pine.LNX.4.10.10105230113190.21329-100000@mars.deadcafe.org>
Hi Jeff,
> 2001-05-22 Jeff Sturm <jsturm@one-point.com>
>
> * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA32 mapping.
> * elf64-sparc.c: Likewise.
>
> 2001-05-22 Jeff Sturm <jsturm@one-point.com>
>
> * config/tc-sparc.c (md_apply_fix3): Handle BFD_RELOC_SPARC_UA32
> as BFD_RELOC_32.
> (tc_gen_reloc): Likewise.
> (sparc_cons_align): Don't clear sparc_no_align_cons.
> (cons_fix_new_sparc): Substitute BFD_RELOC_SPARC_UA32 for
> BFD_RELOC_32 iff sparc_no_align_cons is set.
Thanks for submitting this patch.
I have applied it, along with the extension pointed out by Richard
Henderson, of support .uahalf and .uaxword.
I have also created and checked in the following gas testcase to make
sure that these relocs continue to be supported in the future.
Cheers
Nick
----------------------------------------------
# Test unaligned reloc generation
.data
foo:
.byte 0x1
.uaword fred
.byte 0x2
.uahalf jim
.byte 0x3
.uaxword harry
.byte 0x4
.byte 0x5
.byte 0x6