From: Nick Clifton Date: Thu, 7 Oct 2004 15:00:20 +0000 (+0000) Subject: apply mising piece of previous patch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b40fcba62005ece43aaf60a053d10a0c2a9a47f;p=binutils-gdb.git apply mising piece of previous patch --- diff --git a/bfd/elf.c b/bfd/elf.c index 0b2fb843815..e71c18c6be1 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -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 0fcfe795644..be6391c47a2 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) {