Fix configuration of s390x binutils so that it does not include support for extraneous targets.

Resolves: 
This commit is contained in:
Nick Clifton 2022-11-02 15:27:50 +00:00
parent e27610f6a7
commit 78fe7f4703

View File

@ -39,7 +39,7 @@
Summary: A GNU collection of binary utilities Summary: A GNU collection of binary utilities
Name: binutils%{?name_cross}%{?_with_debug:-debug} Name: binutils%{?name_cross}%{?_with_debug:-debug}
Version: 2.39 Version: 2.39
Release: 4%{?dist} Release: 5%{?dist}
License: GPLv3+ License: GPLv3+
URL: https://sourceware.org/binutils URL: https://sourceware.org/binutils
@ -574,11 +574,11 @@ CARGS="$CARGS --enable-64-bit-bfd"
# Also enable the BPF target so that strip will work on BPF files. # Also enable the BPF target so that strip will work on BPF files.
case %{binutils_target} in case %{binutils_target} in
s390*) s390*)
# FIXME: For some unknown reason settting --enable-targets=x86_64-pep # Note - The s390-linux target is there so that the GOLD linker will
# here breaks the building of GOLD. I have no idea why, and not enough # build. By default, if configured for just s390x-linux, the GOLD
# knowledge of how gold is configured to fix quickly. So instead I have # configure system will only include support for 64-bit targets, but
# found that supporting "all" targets works. # the s390x gold backend uses both 32-bit and 64-bit templates.
CARGS="$CARGS --enable-targets=all" CARGS="$CARGS --enable-targets=s390-linux,s390x-linux,x86_64-pep,bpf-unknown-none"
;; ;;
ia64*) ia64*)
CARGS="$CARGS --enable-targets=ia64-linux,x86_64-pep,bpf-unknown-none" CARGS="$CARGS --enable-targets=ia64-linux,x86_64-pep,bpf-unknown-none"
@ -963,6 +963,9 @@ exit 0
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
%changelog %changelog
* Wed Nov 02 2022 Nick Clifton <nickc@redhat.com> - 2.39-5
- Fix configuration of s390x binutils so that it does not include support for extraneous targets. (#2139143)
* Mon Oct 03 2022 Nick Clifton <nickc@redhat.com> - 2.39-4 * Mon Oct 03 2022 Nick Clifton <nickc@redhat.com> - 2.39-4
- Fix readelf's decoding of files with no sections. (#2131609) - Fix readelf's decoding of files with no sections. (#2131609)