diff --git a/binutils-PowerPC-IEEE-long-double-warnings.patch b/binutils-PowerPC-IEEE-long-double-warnings.patch new file mode 100644 index 0000000..2c3d8d3 --- /dev/null +++ b/binutils-PowerPC-IEEE-long-double-warnings.patch @@ -0,0 +1,17 @@ +--- binutils.orig/bfd/elf32-ppc.c 2018-06-12 17:35:40.931551297 +0100 ++++ binutils-2.30/bfd/elf32-ppc.c 2018-06-12 17:37:22.252441292 +0100 +@@ -4677,12 +4677,12 @@ _bfd_elf_ppc_merge_fp_attributes (bfd *i + _bfd_error_handler + /* xgettext:c-format */ + (_("Warning: %B uses IBM long double, " +- "%B uses IEEE long double"), ibfd, obfd); ++ "%B uses IEEE long double"), obfd, ibfd); + else if (out_fp == 3 * 4 && in_fp == 1 * 4) + _bfd_error_handler + /* xgettext:c-format */ + (_("Warning: %B uses IBM long double, " +- "%B uses IEEE long double"), obfd, ibfd); ++ "%B uses IEEE long double"), ibfd, obfd); + } + } + diff --git a/binutils.spec b/binutils.spec index 7280f3e..ef792d9 100644 --- a/binutils.spec +++ b/binutils.spec @@ -69,7 +69,7 @@ Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.30 -Release: 22%{?dist} +Release: 23%{?dist} License: GPLv3+ Group: Development/Tools URL: https://sourceware.org/binutils @@ -288,6 +288,11 @@ Patch36: binutils-x86-local-version.patch # Lifetime: Fixed in 2.31 (probably) Patch37: binutils-fix-testsuite-failures.patch +# Purpose: Correct warning messages about incompatible PowerPC IEEE +# long double sizes in different binaries. +# Lifetime: Fixed in 2.31. +Patch38: binutils-PowerPC-IEEE-long-double-warnings.patch + #---------------------------------------------------------------------------- Provides: bundled(libiberty) @@ -450,6 +455,7 @@ using libelf instead of BFD. %patch35 -p1 %patch36 -p1 %patch37 -p1 +%patch38 -p1 # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -863,6 +869,9 @@ exit 0 #---------------------------------------------------------------------------- %changelog +* Tue Jun 12 2018 Nick Clifton 2.30-23 +- Correct warning messages about incompatible PowerPC IEEE long double settings. + * Fri Jun 01 2018 Nick Clifton 2.30-22 - Fix handling of local versioned symbols by the x86 linker. (PR 23194) - Fix linker testsuite failures.