mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-26 19:36:58 +08:00
R_OR1K_GOTOFF_* relocations
PR 20475 * elf32-or1k.c (or1k_elf_relocate_section): Offset from _GLOBAL_OFFSET_TABLE_, not start of .got section.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2016-08-23 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 20475
|
||||||
|
* elf32-or1k.c (or1k_elf_relocate_section): Offset from
|
||||||
|
_GLOBAL_OFFSET_TABLE_, not start of .got section.
|
||||||
|
|
||||||
2016-08-22 Nick Clifton <nickc@redhat.com>
|
2016-08-22 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* doc/chew.c (main): Free the string buffer used to files as they
|
* doc/chew.c (main): Free the string buffer used to files as they
|
||||||
|
@ -998,7 +998,10 @@ or1k_elf_relocate_section (bfd *output_bfd,
|
|||||||
case R_OR1K_GOTOFF_HI16:
|
case R_OR1K_GOTOFF_HI16:
|
||||||
/* Relocation is offset from GOT. */
|
/* Relocation is offset from GOT. */
|
||||||
BFD_ASSERT (sgot != NULL);
|
BFD_ASSERT (sgot != NULL);
|
||||||
relocation -= sgot->output_section->vma;
|
relocation
|
||||||
|
-= (htab->root.hgot->root.u.def.value
|
||||||
|
+ htab->root.hgot->root.u.def.section->output_offset
|
||||||
|
+ htab->root.hgot->root.u.def.section->output_section->vma);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case R_OR1K_INSN_REL_26:
|
case R_OR1K_INSN_REL_26:
|
||||||
|
Reference in New Issue
Block a user