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.
This commit is contained in:
Alan Modra 2018-08-20 15:23:38 +09:30
parent 706704c883
commit 46807bf451
3 changed files with 506 additions and 3062 deletions

View File

@ -1,3 +1,12 @@
2018-08-21 Alan Modra <amodra@gmail.com>
* 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.
2018-08-21 Alan Modra <amodra@gmail.com>
* reloc.c (reloc_howto_type): Typedef.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff