Error for mismatched powerpc ABI tags
authorAlan Modra <amodra@gmail.com>
Wed, 4 Jul 2018 01:11:31 +0000 (10:41 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 5 Jul 2018 00:51:37 +0000 (10:21 +0930)
commit4a91d0ba307eb24eb87ad27f4ea8fcde823c3e61
treecae93839f5cc850613fa794e7ca1cf52102aebc6
parent4423fa967210f4132b81d5fe80a1f6f3ec0ab1c8
Error for mismatched powerpc ABI tags

And report the two input files that are incompatible rather than
reporting that an input file is incompatible with the output.

bfd/
* elf-bfd.h (_bfd_elf_ppc_merge_fp_attributes): Update prototype.
* elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Return error
on mismatch.  Remove "warning: " from messages.  Track last bfd
used to set tags.
(ppc_elf_merge_obj_attributes): Likewise.  Handle status from
_bfd_elf_ppc_merge_fp_attributes.
* elf64-ppc.c (ppc64_elf_merge_private_bfd_data): Handle status
from _bfd_elf_ppc_merge_fp_attributes.
ld/
* testsuite/ld-powerpc/attr-gnu-4-12.d: Update expected output.
* testsuite/ld-powerpc/attr-gnu-4-13.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-21.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-23.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-31.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-4-32.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-8-23.d: Likewise.
* testsuite/ld-powerpc/attr-gnu-12-21.d: Likewise.
13 files changed:
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf32-ppc.c
bfd/elf64-ppc.c
ld/ChangeLog
ld/testsuite/ld-powerpc/attr-gnu-12-21.d
ld/testsuite/ld-powerpc/attr-gnu-4-12.d
ld/testsuite/ld-powerpc/attr-gnu-4-13.d
ld/testsuite/ld-powerpc/attr-gnu-4-21.d
ld/testsuite/ld-powerpc/attr-gnu-4-23.d
ld/testsuite/ld-powerpc/attr-gnu-4-31.d
ld/testsuite/ld-powerpc/attr-gnu-4-32.d
ld/testsuite/ld-powerpc/attr-gnu-8-23.d