From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18855 invoked by alias); 11 Dec 2004 04:57:58 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 18800 invoked from network); 11 Dec 2004 04:57:53 -0000 Received: from unknown (HELO gizmo07ps.bigpond.com) (144.140.71.42) by sourceware.org with SMTP; 11 Dec 2004 04:57:53 -0000 Received: (qmail 26552 invoked from network); 11 Dec 2004 04:57:51 -0000 Received: from unknown (HELO psmam12.bigpond.com) (144.135.25.103) by gizmo07ps.bigpond.com with SMTP; 11 Dec 2004 04:57:51 -0000 Received: from cpe-144-136-221-26.sa.bigpond.net.au ([144.136.221.26]) by psmam12.bigpond.com(MAM REL_3_4_2a 234/4353858) with SMTP id 4353858; Sat, 11 Dec 2004 14:57:51 +1000 Received: by bubble.modra.org (Postfix, from userid 500) id 188D114C28D; Sat, 11 Dec 2004 15:27:51 +1030 Date: Sat, 11 Dec 2004 04:57:00 -0000 From: Alan Modra To: Hans-Peter Nilsson , binutils@sources.redhat.com Subject: Re: RFA: Don't canonicalize STT_SECTION syms Message-ID: <20041211045751.GL12046@bubble.modra.org> Mail-Followup-To: Hans-Peter Nilsson , binutils@sources.redhat.com References: <20041210140431.GF12046@bubble.modra.org> <200412101514.iBAFEVEf002240@ignucius.se.axis.com> <20041210151929.GA14328@nevyn.them.org> <20041211042043.GJ12046@bubble.modra.org> <20041211043426.GA31280@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041211043426.GA31280@nevyn.them.org> User-Agent: Mutt/1.4i X-SW-Source: 2004-12/txt/msg00133.txt.bz2 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