This is the mail archive of the
mailing list for the binutils project.
Re: Porting binutils for the tms320c6000
- To: laurent dot pinchart at capflow dot com
- Subject: Re: Porting binutils for the tms320c6000
- From: DJ Delorie <dj at delorie dot com>
- Date: Fri, 18 May 2001 14:27:20 -0400
- CC: binutils at sourceware dot cygnus dot com
- References: <3B0565B1.email@example.com>
> 1) There are two ways to handle special relocations (the
> special_function pointer in the howto structure, and defining a target
> specific coff_relocate_section function). Some coff backends use the
> first way, and some others the second one. What's the difference between
> them ? I think that they aren't used at the same place (so I might have
> to use both), but I'd like to get some info about that.
"It depends." You really have to read the code to understand which is
used where. The last port I did, I ignored the special_function and
just wrote my own relocate_section handler, because most of the relocs
were "special" anyway.
> 2) what's the purpose of the coff_reloc_type_lookup function ?
Gas backends use it for various things. The linker uses it in a few
cases to build constructor lists. dlltool uses it to apply relocs to
the libraries it creates. windres uses it to build resource objects.
In many cases, it can be used as a way to get the R_* value as well.