This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Giving canonical sections a name breaks GDB?
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