Relocation question (was: RE: Unsupported targets slated for removal)

Christian Groessler chris@groessler.org
Thu Apr 7 14:42:00 GMT 2005


On Wed, 6 Apr 2005, Alan Modra wrote:

> On Wed, Apr 06, 2005 at 12:23:47PM +0200, Christian Groessler wrote:
> >
> > Please note the different VALUEs.
>
> Either of these is likely OK.  In the second case, a reloc against a
> local symbol INITFN is being reduced to a reloc against a section
> symbol.  With larger assembly files this optimization can reduce the
> size of the symbol table.  You can tweak which relocs may be reduced
> with tc_fix_adjustable.

Thanks.
If I return 0 in tc_fix_adjustable the symbol name appears in the
relocation.

I find it more informative if the symbol name appears in the relocation,
but probaby other prefer the optimized version.
Makes it sense to make the tc_fix_adjustable return value user selectable?
Of course, only in cases where it doesn't matter technically.
I would implement a command line parameter to do this, and also modify the
other targets.

regards,
chris




More information about the Binutils mailing list