bfd_merge_private_bfd_data tidy
authorAlan Modra <amodra@gmail.com>
Fri, 7 Oct 2016 00:28:35 +0000 (10:58 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 7 Oct 2016 00:54:21 +0000 (11:24 +1030)
commit1047201fd0f402428bb3331638a198413f97f476
tree36aba61eb942e9795c947b85abb2629582c14e79
parentb62b1f7143c70caf5a14bd9684bbe50f51db706f
bfd_merge_private_bfd_data tidy

bfd_merge_private_bfd_data and _bfd_generic_verify_endian_match are
linker functions, so move them to linker.c.

bfd/
* Makefile.am (LIBBFD_H_FILES): Update.
* doc/Makefile.am (LIBBFD_H_DEP): Likewise.
* cpu-sh.c (sh_merge_bfd_arch): Move to..
* elf32-sh.c: ..here, and make static.
* elf32-arc.c (arc_elf_merge_private_bfd_data): Delete extraneous
error.
* elf32-cris.c (cris_elf_merge_private_bfd_data): Don't call
_bfd_generic_verify_endian_match.
* elf32-microblaze.c (microblaze_elf_merge_private_bfd_data): Delete.
(bfd_elf32_bfd_merge_private_bfd_data): Define as
_bfd_generic_verify_endian_match.
* elf32-mt.c (mt_elf_merge_private_bfd_data): Don't test
boolean == FALSE.
* elf32-xgate.c (_bfd_xgate_elf_merge_private_bfd_data): Delete.
(bfd_elf32_bfd_merge_private_bfd_data): Don't define.
* elf32-xgate.h (_bfd_xgate_elf_merge_private_bfd_data): Delete.
* libbfd-in.h (_bfd_generic_verify_endian_match): Delete.
* libbfd.c (_bfd_generic_verify_endian_match): Move to..
* linker.c: ..here, and make internal.
* bfd.c (bfd_merge_private_bfd_data): Move to..
* linker.c: ..here.
* Makefile.in: Regenerate.
* doc/Makefile.in: Regenerate.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
opcodes/
* sh-opc.h (sh_merge_bfd_arch): Delete prototype.
21 files changed:
bfd/ChangeLog
bfd/Makefile.am
bfd/Makefile.in
bfd/bfd-in2.h
bfd/bfd.c
bfd/cpu-sh.c
bfd/doc/Makefile.am
bfd/doc/Makefile.in
bfd/elf32-arc.c
bfd/elf32-cris.c
bfd/elf32-microblaze.c
bfd/elf32-mt.c
bfd/elf32-sh.c
bfd/elf32-xgate.c
bfd/elf32-xgate.h
bfd/libbfd-in.h
bfd/libbfd.c
bfd/libbfd.h
bfd/linker.c
opcodes/ChangeLog
opcodes/sh-opc.h