Merge .gnu.build.attribute sections together.

Realtes: #1608390
This commit is contained in:
Nick Clifton 2018-07-26 14:01:23 +01:00
parent 3aa289aea0
commit 1bbe42b979
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- binutils.orig/ld/scripttempl/elf.sc 2018-07-26 10:07:32.307908582 +0100
+++ binutils-2.31.1/ld/scripttempl/elf.sc 2018-07-26 10:10:42.123860250 +0100
@@ -379,6 +379,7 @@ emit_early_ro()
cat <<EOF
${INITIAL_READONLY_SECTIONS}
.note.gnu.build-id : { *(.note.gnu.build-id) }
+ .gnu-.build.attributes : { *(.gnu.build.attributes .gnu.build.attributes.*) }
EOF
}

View File

@ -69,7 +69,7 @@
Summary: A GNU collection of binary utilities
Name: %{?cross}binutils%{?_with_debug:-debug}
Version: 2.31.1
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv3+
URL: https://sourceware.org/binutils
@ -167,6 +167,10 @@ Patch12: binutils-gold-ignore-discarded-note-relocs.patch
# Lifetime: Fixed in 2.32
Patch13: binutils-s390-partial-relro.patch
# Purpose: Merge .gnu.build.attribute sections into a single section.
# Lifetime: Fixed in 2.32
Patch14: binutils-merge-attribute-sections.patch
#----------------------------------------------------------------------------
Provides: bundled(libiberty)
@ -304,6 +308,7 @@ using libelf instead of BFD.
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
# We cannot run autotools as there is an exact requirement of autoconf-2.59.
@ -711,6 +716,9 @@ exit 0
#----------------------------------------------------------------------------
%changelog
* Thu Jul 26 2018 Nick Clifton <nickc@redhat.com> - 2.31.1-4
- Merge .gnu.build.attribute sections together. (#1608390)
* Tue Jul 24 2018 Nick Clifton <nickc@redhat.com> - 2.31.1-3
- Extend gold linker patch to cover subsections of .gnu.build.attributes. (#1607054)