From: Alan Modra <amodra@bigpond.net.au>
To: binutils@sources.redhat.com
Subject: Re: Giving canonical sections a name breaks GDB?
Date: Thu, 30 Dec 2004 22:32:00 -0000 [thread overview]
Message-ID: <20041230223238.GA26838@bubble.modra.org> (raw)
In-Reply-To: <200412212027.iBLKRe7L000687@elgar.sibelius.xs4all.nl>
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
prev parent reply other threads:[~2004-12-30 22:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-20 12:41 Mark Kettenis
2004-12-20 22:35 ` Alan Modra
2004-12-21 20:28 ` Mark Kettenis
2004-12-30 22:32 ` Alan Modra [this message]
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=20041230223238.GA26838@bubble.modra.org \
--to=amodra@bigpond.net.au \
--cc=binutils@sources.redhat.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).