mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
2011-03-03 Michael Snyder <msnyder@vmware.com>
* elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2011-03-03 Michael Snyder <msnyder@vmware.com>
|
2011-03-03 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
|
||||||
|
|
||||||
* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
|
* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
|
||||||
|
|
||||||
* aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
|
* aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
|
||||||
|
@ -3012,18 +3012,6 @@ elf_x86_64_relocate_section (bfd *output_bfd,
|
|||||||
relocation = (base_got->output_section->vma
|
relocation = (base_got->output_section->vma
|
||||||
+ base_got->output_offset + off);
|
+ base_got->output_offset + off);
|
||||||
|
|
||||||
if (r_type != R_X86_64_GOTPCREL
|
|
||||||
&& r_type != R_X86_64_GOTPCREL64)
|
|
||||||
{
|
|
||||||
asection *gotplt;
|
|
||||||
if (htab->elf.splt != NULL)
|
|
||||||
gotplt = htab->elf.sgotplt;
|
|
||||||
else
|
|
||||||
gotplt = htab->elf.igotplt;
|
|
||||||
relocation -= (gotplt->output_section->vma
|
|
||||||
- gotplt->output_offset);
|
|
||||||
}
|
|
||||||
|
|
||||||
goto do_relocation;
|
goto do_relocation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user