From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19678 invoked by alias); 30 Dec 2004 22:32:48 -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 19569 invoked from network); 30 Dec 2004 22:32:41 -0000 Received: from unknown (HELO gizmo01ps.bigpond.com) (144.140.71.11) by sourceware.org with SMTP; 30 Dec 2004 22:32:41 -0000 Received: (qmail 6140 invoked from network); 30 Dec 2004 22:32:39 -0000 Received: from unknown (HELO psmam12.bigpond.com) (144.135.25.103) by gizmo01ps.bigpond.com with SMTP; 30 Dec 2004 22:32:39 -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/23267128) with SMTP id 23267128; Fri, 31 Dec 2004 08:32:39 +1000 Received: by bubble.modra.org (Postfix, from userid 500) id 27C0E46553; Fri, 31 Dec 2004 09:02:39 +1030 Date: Thu, 30 Dec 2004 22:32:00 -0000 From: Alan Modra To: binutils@sources.redhat.com Subject: Re: Giving canonical sections a name breaks GDB? Message-ID: <20041230223238.GA26838@bubble.modra.org> Mail-Followup-To: binutils@sources.redhat.com References: <200412201241.iBKCfCiI021313@juw15.nfra.nl> <20041220223449.GA13749@bubble.modra.org> <200412212027.iBLKRe7L000687@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412212027.iBLKRe7L000687@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.4i X-SW-Source: 2004-12/txt/msg00341.txt.bz2 It possibly changes objdump disassembly too. Fixed as follows. binutils/ChangeLog * objdump.c (remove_useless_symbols): Discard section symbols. Index: binutils/objdump.c =================================================================== RCS file: /cvs/src/src/binutils/objdump.c,v retrieving revision 1.96 diff -u -p -r1.96 objdump.c --- binutils/objdump.c 11 Oct 2004 08:18:43 -0000 1.96 +++ binutils/objdump.c 30 Dec 2004 22:06:07 -0000 @@ -458,7 +458,7 @@ remove_useless_symbols (asymbol **symbol if (sym->name == NULL || sym->name[0] == '\0') continue; - if (sym->flags & (BSF_DEBUGGING)) + if (sym->flags & (BSF_DEBUGGING | BSF_SECTION_SYM)) continue; if (bfd_is_und_section (sym->section) || bfd_is_com_section (sym->section)) -- Alan Modra IBM OzLabs - Linux Technology Centre