aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-10-07 15:00:20 +0000
committerNick Clifton <nickc@redhat.com>2004-10-07 15:00:20 +0000
commit6b40fcba62005ece43aaf60a053d10a0c2a9a47f (patch)
treed94fbd36d4374e0882c1811f8f84c642bce93bd9 /bfd
parentb67ae299337df2d8af07cac6a99630169f0bcdf6 (diff)
downloadgdb-6b40fcba62005ece43aaf60a053d10a0c2a9a47f.zip
gdb-6b40fcba62005ece43aaf60a053d10a0c2a9a47f.tar.gz
gdb-6b40fcba62005ece43aaf60a053d10a0c2a9a47f.tar.bz2
apply mising piece of previous patch
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elf.c2
-rw-r--r--bfd/elf32-arm.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 0b2fb84..e71c18c 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 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)
{