]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/reloc.c
Delete NEWHOWTO and tidy some uses of reloc_howto_struct
authorAlan Modra <amodra@gmail.com>
Mon, 20 Aug 2018 10:06:05 +0000 (19:36 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 21 Aug 2018 05:29:53 +0000 (14:59 +0930)
commit487096bf0bd5499b1d23ecbe5fd64f9f0079c0b5
tree7fdf2a12c1919c5f5a8fdb2d08f8ac58b366e381
parent08a8fe2ffd9766877a74a52922b4391d37e85491
Delete NEWHOWTO and tidy some uses of reloc_howto_struct

NEWHOWTO was promised way back in 1991 (git commit e5683622186).
I doubt it's ever going to be implemented.  This patch removes it,
and tidies some reloc howtos.  I was going to make some changes to
reloc_howto_struct, so I think it's important that all relocs howtos
are initialized with HOWTO.

* reloc.c (HOWTO): Revise comment.
(NEWHOWTO, HOWTO_PREPARE): Delete.
* coff-arm.c (coff_arm_reloc_type_lookup): Replace const struc
reloc_howto_struct with reloc_howto_type.
* ns32knetbsd.c (MY_bfd_reloc_type_lookup): Likewise.
* vms-alpha.c (alpha_vms_bfd_reloc_type_lookup): Likewise.
* elf-hppa.h (HOW): Define.
(elf_hppa_howto_table): Use it to simplify this table, correcting
name of R_PARISC_LTOFF16WF, R_PARISC_LTOFF_FPTR64, and
R_PARISC_LTOFF_FPTR16DF.
* elf32-mep.c (MEPREL): Use HOWTO.
* bfd-in2.h: Regenerate.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/coff-arm.c
bfd/elf-hppa.h
bfd/elf32-mep.c
bfd/ns32knetbsd.c
bfd/reloc.c
bfd/vms-alpha.c