]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Include offset of reloc from start of section when computing value for
authorNick Clifton <nickc@redhat.com>
Fri, 3 Aug 2001 11:16:39 +0000 (11:16 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 3 Aug 2001 11:16:39 +0000 (11:16 +0000)
R_ARM_REL32 reloc.

bfd/ChangeLog
bfd/elf32-arm.h

index e8bc010d3f8a06f2d0b4e4e5fbf8e7eeca92978a..1ea2652e8c7ba7f19768e54d5b347e5200d0152c 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-07-06  Philip Blundell  <philb@gnu.org>
 
        * elf32-arm.h (elf32_arm_merge_private_bfd_data): Correct sense of
index b05a5cc31ec99b820c98a5764d721d156e7277a4..d628f1d5476be212d6cc8bd3faedc928c02c44c8 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;
        }