public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@bigpond.net.au>
To: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>,
	binutils@sources.redhat.com
Subject: Re: RFA: Don't canonicalize STT_SECTION syms
Date: Sat, 11 Dec 2004 04:57:00 -0000	[thread overview]
Message-ID: <20041211045751.GL12046@bubble.modra.org> (raw)
In-Reply-To: <20041211043426.GA31280@nevyn.them.org>

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

  reply	other threads:[~2004-12-11  4:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-08 21:50 Daniel Jacobowitz
2004-12-08 23:57 ` Alan Modra
2004-12-10  3:15 ` Hans-Peter Nilsson
2004-12-10  3:21   ` Daniel Jacobowitz
2004-12-10 12:14     ` Alan Modra
2004-12-10 12:56       ` Alan Modra
2004-12-10 14:04         ` Alan Modra
2004-12-10 15:14           ` Hans-Peter Nilsson
2004-12-10 15:19             ` Daniel Jacobowitz
2004-12-11  4:21               ` Alan Modra
2004-12-11  4:34                 ` Daniel Jacobowitz
2004-12-11  4:57                   ` Alan Modra [this message]
2004-12-11  5:08                     ` Daniel Jacobowitz
2004-12-11  5:32                       ` Alan Modra
2004-12-11  5:38                         ` Daniel Jacobowitz
2004-12-11  5:59                           ` Alan Modra
2004-12-11  6:11                             ` Daniel Jacobowitz
2004-12-11  5:52                         ` Alan Modra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041211045751.GL12046@bubble.modra.org \
    --to=amodra@bigpond.net.au \
    --cc=binutils@sources.redhat.com \
    --cc=hans-peter.nilsson@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).