From: Nick Clifton Date: Thu, 7 Oct 2004 14:57:57 +0000 (+0000) Subject: Skip redundant/bogus test for section membership when examining symbols. X-Git-Tag: gdb_6_3-20041019-branchpoint~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b67ae299337df2d8af07cac6a99630169f0bcdf6;p=external%2Fbinutils.git Skip redundant/bogus test for section membership when examining symbols. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0500b9b..3dba4a3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2004-10-07 Jan Beulich + + * elf.c (elf_find_function): Don't generally check for matching + section, just for non-file symbols. Remove redunant comparison + for the latter. + * elf32-arm.h (arm_elf_find_function): Likewise. + 2004-10-07 Jeff Baker * elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if diff --git a/bfd/elf.c b/bfd/elf.c index 64990b2..0b2fb84 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -6304,9 +6304,6 @@ elf_find_function (bfd *abfd ATTRIBUTE_UNUSED, q = (elf_symbol_type *) *p; - if (bfd_get_section (&q->symbol) != section) - continue; - switch (ELF_ST_TYPE (q->internal_elf_sym.st_info)) { default: diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h index a8aac2b..0fcfe79 100644 --- a/bfd/elf32-arm.h +++ b/bfd/elf32-arm.h @@ -3186,9 +3186,6 @@ arm_elf_find_function (bfd * abfd ATTRIBUTE_UNUSED, q = (elf_symbol_type *) *p; - if (bfd_get_section (&q->symbol) != section) - continue; - switch (ELF_ST_TYPE (q->internal_elf_sym.st_info)) { default: