mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
Properly move kept relocations when deleting relocations
* elf32-i386.c (elf_i386_relocate_section): Properly move kept relocations when deleting relocations. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2015-11-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elf32-i386.c (elf_i386_relocate_section): Properly move
|
||||||
|
kept relocations when deleting relocations.
|
||||||
|
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
|
||||||
|
|
||||||
2015-11-09 H.J. Lu <hongjiu.lu@intel.com>
|
2015-11-09 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* elf32-i386.c (elf_i386_relocate_section): Use read and write
|
* elf32-i386.c (elf_i386_relocate_section): Use read and write
|
||||||
|
@ -3791,7 +3791,11 @@ elf_i386_relocate_section (bfd *output_bfd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bfd_link_relocatable (info))
|
if (bfd_link_relocatable (info))
|
||||||
continue;
|
{
|
||||||
|
if (wrel != rel)
|
||||||
|
*wrel = *rel;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* Since STT_GNU_IFUNC symbol must go through PLT, we handle
|
/* Since STT_GNU_IFUNC symbol must go through PLT, we handle
|
||||||
it here if it is defined in a non-shared object. */
|
it here if it is defined in a non-shared object. */
|
||||||
|
@ -3980,7 +3980,11 @@ elf_x86_64_relocate_section (bfd *output_bfd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bfd_link_relocatable (info))
|
if (bfd_link_relocatable (info))
|
||||||
continue;
|
{
|
||||||
|
if (wrel != rel)
|
||||||
|
*wrel = *rel;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (rel->r_addend == 0 && !ABI_64_P (output_bfd))
|
if (rel->r_addend == 0 && !ABI_64_P (output_bfd))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user