PowerPC HOWTOs
authorAlan Modra <amodra@gmail.com>
Mon, 20 Aug 2018 05:53:38 +0000 (15:23 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 21 Aug 2018 05:29:53 +0000 (14:59 +0930)
commit46807bf45106af5523ad06cf84e7b825dcb9f089
treedd9e65c22b2aee4f31f970b5fbd738d36c010a9d
parent706704c88344314646e4edcc0840cb18a9cb4c82
PowerPC HOWTOs

These take up far too many lines in the files.  This patch introduces
a replacement for the HOWTO macro that simplifies the relow howto
initialization.  Apart from the two relocs mentioned in the ChangeLog,
no relocation howto is changed.

* elf64-ppc.c (HOW): Define.
(ONES): Delete.
(ppc64_elf_howto_raw): Use HOW to initialize entries.
* elf32-ppc.c (HOW): Define.
(ppc_elf_howto_raw): Use HOW to initialize entries, updating
R_PPC_VLE_REL15 and R_PPC_VLE_REL24 to use bitpos=0.
bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c