]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
R_PPC64_ENTRY
authorAlan Modra <amodra@gmail.com>
Mon, 7 Dec 2015 02:44:53 +0000 (13:14 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 10 Dec 2015 13:48:49 +0000 (00:18 +1030)
commit42af49550a58a14bd8ae1803bf157eeeabf657ff
tree4ff90ee3c5cba96489f27c9c8d2957a97254ea5d
parent6ae72d11333f98d2366c35b98c7fc9db6ff25551
R_PPC64_ENTRY

Add a new relocation that marks large-model entry code, for edit back
to medium-model.

include/elf/
* ppc64.h (R_PPC64_ENTRY): Define.
bfd/
* reloc.c (BFD_RELOC_PPC64_ENTRY): New.
* elf64-ppc.c (reloc_howto_type ppc64_elf_howto_raw): Add
entry for R_PPC64_ENTRY.
(LD_R2_0R12, ADD_R2_R2_R12, LIS_R2, ADDIS_R2_R12): Define.
(ppc64_elf_reloc_type_lookup): Handle R_PPC64_ENTRY.
(ppc64_elf_relocate_section): Edit code at R_PPC64_ENTTY.  Use
new insn defines.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/elf64-ppc.c
bfd/libbfd.h
bfd/reloc.c
include/elf/ChangeLog
include/elf/ppc64.h