This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFA: Don't canonicalize STT_SECTION syms
On Fri, Dec 10, 2004 at 11:34:26PM -0500, Daniel Jacobowitz wrote:
> On Sat, Dec 11, 2004 at 02:50:43PM +1030, Alan Modra wrote:
> > On Fri, Dec 10, 2004 at 10:19:29AM -0500, Daniel Jacobowitz wrote:
> > > so I assume there is more.
> >
> > Yeah.
> >
> > bfd/ChangeLog
> > * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
> > canonical sections syms have a name.
>
> Could you explain why this change is necessary? It's not going back to
> the same place we were before, and I find this...
Well, you either have this change, revert your change that stopped use
of the section symbol for relocs, or introduce some elf dependecy into
objdump. Otherwise objdump -r won't display a name for relocs against
section syms.
> > -0+00 l d foo 0+0
> > +0+00 l d foo 0+0 (|foo)
>
> to be pretty confusing, since IIRC an undefined reference to foo
> shouldn't be resolved to that symbol, if the ELF symbol's name is
> empty.
How is this different from other local symbols?
--
Alan Modra
IBM OzLabs - Linux Technology Centre