Include offset of reloc from start of section when computing value for

R_ARM_REL32 reloc.
This commit is contained in:
Nick Clifton 2001-08-03 11:14:42 +00:00
parent 8e1d4bbbc0
commit 62efb34674
2 changed files with 7 additions and 1 deletions

View 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>

View 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;
}