mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
* elf32-nios2.c (nios2_elf32_relocate_section): Fix calculation of GOTOFF relocations.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
|
||||||
|
|
||||||
|
* elf32-nios2.c (nios2_elf32_relocate_section): Fix calculation
|
||||||
|
of GOTOFF relocations.
|
||||||
|
|
||||||
2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
|
2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
|
||||||
H.J. Lu <hongjiu.lu@intel.com>
|
H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
@ -3147,9 +3147,13 @@ nios2_elf32_relocate_section (bfd *output_bfd,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Adjust the relocation to be relative to the GOT pointer. */
|
/* Note that sgot->output_offset is not involved in this
|
||||||
relocation -= (sgot->output_section->vma
|
calculation. We always want the start of .got. */
|
||||||
+ sgot->output_offset - got_base);
|
relocation -= sgot->output_section->vma;
|
||||||
|
|
||||||
|
/* Now we adjust the relocation to be relative to the GOT pointer
|
||||||
|
(the _gp_got symbol), which possibly contains the 0x8000 bias. */
|
||||||
|
relocation -= got_base;
|
||||||
|
|
||||||
switch (howto->type)
|
switch (howto->type)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user