[patch][rfc] Complex Relocations gas and bfd

Alan Modra amodra@bigpond.net.au
Tue Jan 23 09:34:00 GMT 2007


On Mon, Jan 22, 2007 at 01:12:07PM -0500, Dave Brolley wrote:
> I've spent about a day and a half now trying to find a way to define the 
> reloc on a target by target basis.

gas should use a single BFD_RELOC_RELC.  (The BFD_RELOC_* numbering is
internal to BFD.)   This number could then be translated by each
backend bfd_reloc_type_lookup function to the appropriate howto.
Alternatively, you could do something clever in the generic code.
Store the target reloc in elf_backend_data, and stash that value into
a howto.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list