This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch][rfc] Complex Relocations gas and bfd
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