RFC: .gnu.strtab (aka merging duplicate strings by ld)

Ian Lance Taylor ian@zembu.com
Wed Mar 28 12:25:00 GMT 2001


Jakub Jelinek <jakub@redhat.com> writes:

> On Wed, Mar 28, 2001 at 11:55:33AM -0800, Ian Lance Taylor wrote:
> > An implementation which requires changing every ELF backend file is
> > clearly problematical.  Is it required?  Can you simply adjust the
> > symbol values in elf_link_input_bfd?
> 
> I'll try to write something using information retrieved from
> bfd_reloc_type_lookup. I need to get at addend at least.
> Will see.

I'm not suggesting that you do the relocation processing in
elf_link_input_bfd.  That would be hard or impossible.  I'm suggesting
that you manipulate the local symbol values so that the local symbol
has the correct address for the relocation processing done by the
backend.

Ian



More information about the Binutils mailing list