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


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


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