mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-28 20:34:54 +08:00
Include offset of reloc from start of section when computing value for
R_ARM_REL32 reloc.
This commit is contained in:
@ -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>
|
2001-08-03 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
From H.J. Lu <hjl@gnu.org>
|
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:
|
case R_ARM_REL32:
|
||||||
value -= (input_section->output_section->vma
|
value -= (input_section->output_section->vma
|
||||||
+ input_section->output_offset);
|
+ input_section->output_offset + rel->r_offset);
|
||||||
value += addend;
|
value += addend;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user