* objdump.c (remove_useless_symbols): Discard section symbols.
authorAlan Modra <amodra@gmail.com>
Thu, 30 Dec 2004 22:33:20 +0000 (22:33 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 30 Dec 2004 22:33:20 +0000 (22:33 +0000)
binutils/ChangeLog
binutils/objdump.c

index 80fe241662b40b9e6777598f680fc9dfafdc134a..e2bbebf95f8fc6941eedc3cf4042023bf81e0446 100644 (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.
index 3338fc57cc5929c5545358a8b5a5c505e4a1a146..fa421ad7d5d274a428d95dcf5162c61d3b08651f 100644 (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))