Skip redundant/bogus test for section membership when examining symbols.

This commit is contained in:
Nick Clifton 2004-10-07 14:57:57 +00:00
parent 5c5054ab48
commit b67ae29933
3 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2004-10-07 Jan Beulich <jbeulich@novell.com>
* 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 <jbaker@qnx.com>
* elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if

View File

@ -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:

View File

@ -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: