From: Alan Modra Date: Thu, 30 Dec 2004 22:33:20 +0000 (+0000) Subject: * objdump.c (remove_useless_symbols): Discard section symbols. X-Git-Tag: gdb-pre-i18n-errorwarning-20050211~470 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=180e47e2d7f6280ae3d6a08a661e897578f447d0;p=thirdparty%2Fbinutils-gdb.git * objdump.c (remove_useless_symbols): Discard section symbols. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 80fe241662b..e2bbebf95f8 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2004-12-31 Alan Modra + + * objdump.c (remove_useless_symbols): Discard section symbols. + 2004-12-27 H.J. Lu * readelf.c (read_leb128): Support 64bit host. diff --git a/binutils/objdump.c b/binutils/objdump.c index 3338fc57cc5..fa421ad7d5d 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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))