diff options
-rw-r--r-- | bfd/elf.c | 2 | ||||
-rw-r--r-- | bfd/elf32-arm.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -6313,7 +6313,7 @@ elf_find_function (bfd *abfd ATTRIBUTE_UNUSED, break; case STT_NOTYPE: case STT_FUNC: - if (q->symbol.section == section + if (bfd_get_section (&q->symbol) == section && q->symbol.value >= low_func && q->symbol.value <= offset) { diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h index 0fcfe79..be6391c 100644 --- a/bfd/elf32-arm.h +++ b/bfd/elf32-arm.h @@ -3201,7 +3201,7 @@ arm_elf_find_function (bfd * abfd ATTRIBUTE_UNUSED, continue; /* Fall through. */ case STT_NOTYPE: - if (q->symbol.section == section + if (bfd_get_section (&q->symbol) == section && q->symbol.value >= low_func && q->symbol.value <= offset) { |