This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFC PATCH 01/11] MIPS/BFD: Correct an FP ABI warning
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Cc: Matthew Fortune <Matthew dot Fortune at imgtec dot com>, Daniel Sanders <Daniel dot Sanders at imgtec dot com>
- Date: Fri, 20 Nov 2015 14:48:18 +0000
- Subject: [RFC PATCH 01/11] MIPS/BFD: Correct an FP ABI warning
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 00 dot 1511200755190 dot 6915 at tp dot orcam dot me dot uk>
Correct a warning produced on any FP ABI mismatch observed. Unlike the
other settings, which in the presence of `.MIPS.abiflags' are duplicated
in the `e_flags' member of the ELF file header, information on the FP
ABI in use is duplicated in `.gnu.attributes' rather than in the former
place. Update the warning message accordingly.
bfd/
* bfd/elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data):
Correct an FP ABI warning.
---
binutils-mips-bfd-merge-fp-abi-msg.diff
Index: binutils/bfd/elfxx-mips.c
===================================================================
--- binutils.orig/bfd/elfxx-mips.c 2015-11-17 13:06:55.435616988 +0000
+++ binutils/bfd/elfxx-mips.c 2015-11-17 13:08:37.251654944 +0000
@@ -15114,7 +15114,7 @@ _bfd_mips_elf_merge_private_bfd_data (bf
if (abiflags.fp_abi != Val_GNU_MIPS_ABI_FP_ANY
&& in_abiflags.fp_abi != abiflags.fp_abi)
(*_bfd_error_handler)
- (_("%B: warning: Inconsistent FP ABI between e_flags and "
+ (_("%B: warning: Inconsistent FP ABI between .gnu.attributes and "
".MIPS.abiflags"), ibfd);
if ((in_abiflags.ases & abiflags.ases) != abiflags.ases)
(*_bfd_error_handler)