Include offset of reloc from start of section when computing value for
R_ARM_REL32 reloc.
This commit is contained in:
parent
8e1d4bbbc0
commit
62efb34674
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user