apply mising piece of previous patch
authorNick Clifton <nickc@redhat.com>
Thu, 7 Oct 2004 15:00:20 +0000 (15:00 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 7 Oct 2004 15:00:20 +0000 (15:00 +0000)
bfd/elf.c
bfd/elf32-arm.h

index 0b2fb84381530eaee217cdb07defad7893822f83..e71c18c6be1b44e70cadcd1e168a30372e503203 100644 (file)
--- 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)
            {
index 0fcfe7956446f8d58d3950cbbf34761f4e967bb3..be6391c47a2d09f4160ba8ed42cee50a64b5bc5a 100644 (file)
@@ -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)
            {