[PATCH] BFD: Handle copying of absolute section symbols

Maciej W. Rozycki macro@linux-mips.org
Tue Apr 17 10:51:00 GMT 2012


On Mon, 16 Apr 2012, Alan Modra wrote:

> >  Excuse me, but I fail to see where we exclude global section syms -- 
> > there's nothing in ignore_section_sym or elf_map_symbols that looks to me 
> > like eliminating them.  For the avoidance of doubt -- does your your 
> > answer count as approval for my change?
> 
> You had this:
> 
>     63: 0000000000000001     0 SECTION GLOBAL DEFAULT  ABS _DYNAMIC_LINKING
>                                        ^^^^^^
> and found it was being dropped.
> 
> Your solution was to keep ABS symbols.  An alternative solution for
> your particular problem is to ensure global symbols are kept.  I'm
> saying we should do both.

 Hmm, you can't mean we should keep global symbols from dropped sections 
(be it section or ordinary symbols), can you?

 We're dropping this symbol because it does not belong to any section 
being output, not because it's global or not.  If it wasn't absolute, but 
its section was dropped, it would be (correctly) dropped as well.  
Likewise if it was local and absolute, it would be (incorrectly) dropped 
too -- this is fixed by my change just as for global absolute symbols.

 I'm confused, sorry.

  Maciej



More information about the Binutils mailing list