Merge remote-tracking branch 'upstream/rawhide' into rawhide

This commit is contained in:
Václav Kadlčík 2021-05-21 12:22:29 +02:00
commit 54c8d3242b

View File

@ -220,21 +220,21 @@ Patch08: binutils-2.27-aarch64-ifunc.patch
Patch09: binutils-do-not-link-with-static-libstdc++.patch Patch09: binutils-do-not-link-with-static-libstdc++.patch
# Purpose: Allow OS specific sections in section groups. # Purpose: Allow OS specific sections in section groups.
# Lifetime: Fixed in 2.36 (maybe) # Lifetime: Fixed in 2.37 (maybe)
Patch10: binutils-special-sections-in-groups.patch Patch10: binutils-special-sections-in-groups.patch
# Purpose: Fix linker testsuite failures. # Purpose: Fix linker testsuite failures.
# Lifetime: Fixed in 2.36 (maybe) # Lifetime: Fixed in 2.37 (maybe)
Patch11: binutils-fix-testsuite-failures.patch Patch11: binutils-fix-testsuite-failures.patch
# Purpose: Stop gold from aborting when input sections with the same name # Purpose: Stop gold from aborting when input sections with the same name
# have different flags. # have different flags.
# Lifetime: Fixed in 2.36 (maybe) # Lifetime: Fixed in 2.37 (maybe)
Patch12: binutils-gold-mismatched-section-flags.patch Patch12: binutils-gold-mismatched-section-flags.patch
# Purpose: Add a check to the GOLD linker for a corrupt input file # Purpose: Add a check to the GOLD linker for a corrupt input file
# with a fuzzed section offset. # with a fuzzed section offset.
# Lifetime: Fixed in 2.36 (maybe) # Lifetime: Fixed in 2.37 (maybe)
Patch13: binutils-CVE-2019-1010204.patch Patch13: binutils-CVE-2019-1010204.patch
# Purpose: Change the gold configuration script to only warn about # Purpose: Change the gold configuration script to only warn about
@ -470,12 +470,22 @@ touch */configure
%build %build
echo target is %{binutils_target} echo target is %{binutils_target}
%set_build_flags %set_build_flags
%ifarch %{power64} %ifarch %{power64}
export CFLAGS="$CFLAGS -Wno-error" export CFLAGS="$CFLAGS -Wno-error"
%endif %endif
%if %{with debug}
export CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0"
%define enable_shared 0
%endif
%if %{with clang}
%define _with_cc_clang 1
%endif
CARGS= CARGS=
%if %{with debuginfod} %if %{with debuginfod}
@ -522,15 +532,6 @@ esac
CARGS="$CARGS --enable-relro=no" CARGS="$CARGS --enable-relro=no"
%endif %endif
%if %{with debug}
export CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0"
%define enable_shared 0
%endif
%if %{with clang}
%define _with_cc_clang 1
%endif
# Dependencies are not set up to rebuild the configure files # Dependencies are not set up to rebuild the configure files
# in the subdirectories. So we just rebuild the ones we care # in the subdirectories. So we just rebuild the ones we care
# about after applying the configure patches # about after applying the configure patches
@ -541,7 +542,6 @@ pushd intl
autoconf autoconf
popd popd
# We could improve the cross build's size by setting --enable-shared but # We could improve the cross build's size by setting --enable-shared but
# the produced binaries may be less convenient in the embedded environment. # the produced binaries may be less convenient in the embedded environment.
%configure \ %configure \