* bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
than input BFD.
(bfd_merge_private_bfd_data): Likewise.
* section.c (bfd_copy_private_section_data): Likewise.
* syms.c (bfd_copy_private_symbol_data): Likewise.
* bfd-in2.h: Rebuild.
* aout-target.h (MY_bfd_copy_private_section_data): Check that
both BFD's are the right flavour.
* ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise.
* elf.c (_bfd_elf_copy_private_symbol_data): Likewise.
* elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise.
(_bfd_mips_elf_merge_private_bfd_data): Likewise.
* elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise.
(ppc_elf_merge_private_bfd_data): Likewise.
* elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise.
* peicode.h (pe_bfd_copy_private_section_data): Likewise.