- Omit building GOLD when bootstrapping.
- Add a generic build requirement on gcc. - Move bison and m4 build requirements to be conditional upon building GOLD. - Add --with-sysroot=/ configure option when building native targets. - Skip PR14918 linker test for ARM native targets. Resolves: #1374889
This commit is contained in:
parent
3478af0f2c
commit
5dc0384acf
26
binutils-2.27-skip-rp14918-test-for-arm.patch
Normal file
26
binutils-2.27-skip-rp14918-test-for-arm.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
--- binutils-2.27.orig/ld/testsuite/ld-plugin/lto.exp 2016-09-20 14:11:51.866711051 +0100
|
||||||
|
+++ binutils-2.27/ld/testsuite/ld-plugin/lto.exp 2016-09-20 14:18:28.528223979 +0100
|
||||||
|
@@ -287,11 +287,21 @@ set lto_link_elf_tests [list \
|
||||||
|
{dummy.c} {} "pr16746a.exe"] \
|
||||||
|
[list "PR ld/16746 (2)" \
|
||||||
|
"-O2 -flto -fuse-linker-plugin tmpdir/pr16746c.o tmpdir/pr16746a.o" "-O2 -flto" \
|
||||||
|
- {dummy.c} {} "pr16746b.exe"] \
|
||||||
|
+ {dummy.c} {} "pr16746b.exe"] \
|
||||||
|
+]
|
||||||
|
+
|
||||||
|
+# PR 14918 checks that libgcc is not spuriously included in a shared link of
|
||||||
|
+# an empty program. The ARM crt1.o startup code however calls __libc_csu_init
|
||||||
|
+# in /usr/lib/libc_nonshared.a(elf-init.oS). This in turn needs
|
||||||
|
+# __aeabi_unwind_cpp_pr0@@GCC_3.5 which is provided by libgcc_s.so.1, so the
|
||||||
|
+# test fails. Hence this code to skip the test.
|
||||||
|
+if { ! [istarget "arm*-*-*"] } {
|
||||||
|
+ set lto_link_elf_tests [concat $lto_link_elf_tests [list \
|
||||||
|
[list "PR ld/14918" \
|
||||||
|
"-flto" "-flto" \
|
||||||
|
{pr14918.c} {{"readelf" {-d --wide} "pr14918.d"}} "pr14918.exe" "c"] \
|
||||||
|
-]
|
||||||
|
+ ]]
|
||||||
|
+}
|
||||||
|
|
||||||
|
# Check final symbols in executables.
|
||||||
|
set lto_link_symbol_tests [list \
|
@ -43,7 +43,7 @@
|
|||||||
Summary: A GNU collection of binary utilities
|
Summary: A GNU collection of binary utilities
|
||||||
Name: %{?cross}binutils%{?_with_debug:-debug}
|
Name: %{?cross}binutils%{?_with_debug:-debug}
|
||||||
Version: 2.27
|
Version: 2.27
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://sources.redhat.com/binutils
|
URL: http://sources.redhat.com/binutils
|
||||||
@ -82,6 +82,8 @@ Patch15: binutils-2.27-local-dynsym-count.patch
|
|||||||
Patch16: binutils-2.27-monotonic-section-offsets.patch
|
Patch16: binutils-2.27-monotonic-section-offsets.patch
|
||||||
# Make ARM and AArch64 ports properly support relro on by default.
|
# Make ARM and AArch64 ports properly support relro on by default.
|
||||||
Patch17: binutils-2.27-arm-aarch64-default-relro.patch
|
Patch17: binutils-2.27-arm-aarch64-default-relro.patch
|
||||||
|
# Skip PR14918 linker test for ARM native targets.
|
||||||
|
Patch18: binutils-2.27-skip-rp14918-test-for-arm.patch
|
||||||
|
|
||||||
Provides: bundled(libiberty)
|
Provides: bundled(libiberty)
|
||||||
|
|
||||||
@ -89,11 +91,15 @@ Provides: bundled(libiberty)
|
|||||||
# %define gold_arches %ix86 x86_64 %arm aarch64 ppc* %{power64}
|
# %define gold_arches %ix86 x86_64 %arm aarch64 ppc* %{power64}
|
||||||
%define gold_arches %ix86 x86_64 %arm aarch64
|
%define gold_arches %ix86 x86_64 %arm aarch64
|
||||||
|
|
||||||
|
%if %{with bootstrap}
|
||||||
|
%define build_gold no
|
||||||
|
%else
|
||||||
%ifarch %gold_arches
|
%ifarch %gold_arches
|
||||||
%define build_gold both
|
%define build_gold both
|
||||||
%else
|
%else
|
||||||
%define build_gold no
|
%define build_gold no
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with debug}
|
%if %{with debug}
|
||||||
# Define this if you want to skip the strip step and preserve debug info.
|
# Define this if you want to skip the strip step and preserve debug info.
|
||||||
@ -102,12 +108,15 @@ Provides: bundled(libiberty)
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
|
||||||
# Gold needs bison in order to build gold/yyscript.c.
|
# Gold needs bison in order to build gold/yyscript.c.
|
||||||
# Bison needs m4.
|
# Bison needs m4.
|
||||||
BuildRequires: bison, m4
|
%if "%{build_gold}" == "both"
|
||||||
|
BuildRequires: bison, m4, gcc-c++
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
BuildRequires: gettext, flex, zlib-devel
|
BuildRequires: gettext, flex, zlib-devel
|
||||||
@ -217,6 +226,7 @@ using libelf instead of BFD.
|
|||||||
%patch15 -p1
|
%patch15 -p1
|
||||||
%patch16 -p1
|
%patch16 -p1
|
||||||
%patch17 -p1
|
%patch17 -p1
|
||||||
|
%patch18 -p1
|
||||||
|
|
||||||
# We cannot run autotools as there is an exact requirement of autoconf-2.59.
|
# We cannot run autotools as there is an exact requirement of autoconf-2.59.
|
||||||
|
|
||||||
@ -307,7 +317,9 @@ CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0"
|
|||||||
--enable-gold \
|
--enable-gold \
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if !%{isnative}
|
%if %{isnative}
|
||||||
|
--with-sysroot \
|
||||||
|
%else
|
||||||
--enable-targets=%{_host} \
|
--enable-targets=%{_host} \
|
||||||
--with-sysroot=%{_prefix}/%{binutils_target}/sys-root \
|
--with-sysroot=%{_prefix}/%{binutils_target}/sys-root \
|
||||||
--program-prefix=%{cross} \
|
--program-prefix=%{cross} \
|
||||||
@ -574,6 +586,14 @@ exit 0
|
|||||||
%endif # %{isnative}
|
%endif # %{isnative}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 20 2016 Nick Clifton <nickc@redhat.com> 2.27-6
|
||||||
|
- Omit building GOLD when bootstrapping.
|
||||||
|
- Add a generic build requirement on gcc.
|
||||||
|
- Move bison and m4 build requirements to be conditional upon building GOLD.
|
||||||
|
- Add --with-sysroot=/ configure option when building native targets.
|
||||||
|
- Skip PR14918 linker test for ARM native targets.
|
||||||
|
(#1374889)
|
||||||
|
|
||||||
* Fri Sep 16 2016 Nick Clifton <nickc@redhat.com> 2.27-5
|
* Fri Sep 16 2016 Nick Clifton <nickc@redhat.com> 2.27-5
|
||||||
- Add support for building the rpm with "--with bootstrap" enabled.
|
- Add support for building the rpm with "--with bootstrap" enabled.
|
||||||
- Retire: binutils-2.20.51.0.2-ia64-lib64.patch
|
- Retire: binutils-2.20.51.0.2-ia64-lib64.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user