Include offset of reloc from start of section when computing value for
authorNick Clifton <nickc@redhat.com>
Fri, 3 Aug 2001 11:14:42 +0000 (11:14 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 3 Aug 2001 11:14:42 +0000 (11:14 +0000)
R_ARM_REL32 reloc.

bfd/ChangeLog
bfd/elf32-arm.h

index e7c5c4cb2b2366573e84b3a9bfa789f45d2c97e5..4408a8c289403ea68656e0b23b3c9657cfa73bc0 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-03  Ben Harris <bjh21@netbsd.org>
+
+       * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
+       reloc from start of section when computing value for R_ARM_REL32
+       reloc.
+
 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
 
        From  H.J. Lu  <hjl@gnu.org>
index 6fb163389ac1fee808e2a5904ecc44479ad69f1b..f8f94d66b8351d3d27f68e69b3664e12534556f3 100644 (file)
@@ -1295,7 +1295,7 @@ elf32_arm_final_link_relocate (howto, input_bfd, output_bfd,
 
        case R_ARM_REL32:
          value -= (input_section->output_section->vma
-                   + input_section->output_offset);
+                   + input_section->output_offset + rel->r_offset);
          value += addend;
          break;
        }