* objdump.c (remove_useless_symbols): Discard section symbols.

This commit is contained in:
Alan Modra 2004-12-30 22:33:20 +00:00
parent 1244e39887
commit 180e47e2d7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-12-31 Alan Modra <amodra@bigpond.net.au>
* objdump.c (remove_useless_symbols): Discard section symbols.
2004-12-27 H.J. Lu <hongjiu.lu@intel.com>
* readelf.c (read_leb128): Support 64bit host.

View File

@ -458,7 +458,7 @@ remove_useless_symbols (asymbol **symbols, long count)
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))