summaryrefslogtreecommitdiff
path: root/bfd/elf32-arm.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-08-03 11:14:42 +0000
committerNick Clifton <nickc@redhat.com>2001-08-03 11:14:42 +0000
commitdd69757619fc77049e9199a70febb91ae90e6911 (patch)
treec90ac7fccd737549057d88bb8ac062acdc4c6581 /bfd/elf32-arm.h
parenta13b2824f721df0f59fa7a496af57ed1b7576534 (diff)
downloadgdb-dd69757619fc77049e9199a70febb91ae90e6911.tar.gz
Include offset of reloc from start of section when computing value for
R_ARM_REL32 reloc.
Diffstat (limited to 'bfd/elf32-arm.h')
-rw-r--r--bfd/elf32-arm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h
index 6fb163389ac..f8f94d66b83 100644
--- a/bfd/elf32-arm.h
+++ b/bfd/elf32-arm.h
@@ -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;
}