diff options
author | Nick Clifton <nickc@redhat.com> | 2004-10-07 14:57:57 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-10-07 14:57:57 +0000 |
commit | 24ebed5ebb58f6451b90c1f8f28137f5733ec5df (patch) | |
tree | 9242cc528e9aa2010a749733f9180cf6d03fb412 | |
parent | 6f6401f9e0ecc0ebe678c81536628a9e51e1d168 (diff) | |
download | gdb-24ebed5ebb58f6451b90c1f8f28137f5733ec5df.tar.gz |
Skip redundant/bogus test for section membership when examining symbols.
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elf.c | 3 | ||||
-rw-r--r-- | bfd/elf32-arm.h | 3 |
3 files changed, 7 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0500b9bda0d..3dba4a3bb3a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elf.c b/bfd/elf.c index 64990b2be08..0b2fb843815 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 a8aac2b90b6..0fcfe795644 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: |