From 7c1047805b047baafcd099065c613b6900ec0e5f Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 4 May 2018 14:23:09 +0200 Subject: [PATCH] Add annobin annotations to assembler code (#1548438) --- glibc.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/glibc.spec b/glibc.spec index 052608c..d64c52c 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1,6 +1,6 @@ %define glibcsrcdir glibc-2.27.9000-326-g0085be1415 %define glibcversion 2.27.9000 -%define glibcrelease 15%{?dist} +%define glibcrelease 16%{?dist} # Pre-release tarballs are pulled in from git using a command that is # effectively: # @@ -235,8 +235,8 @@ BuildRequires: make >= 4.0 # The intl subsystem generates a parser using bison. BuildRequires: bison >= 2.7 -# binutils 2.29 is needed for static PIE support in i386/x86_64. -BuildRequires: binutils >= 2.29 +# binutils 2.30-17 is needed for --generate-missing-build-notes. +BuildRequires: binutils >= 2.30-17 # Earlier releases have broken support for IRELATIVE relocations Conflicts: prelink < 0.4.2 @@ -736,6 +736,11 @@ rpm_inherit_flags \ "-m64" \ "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" \ + +# Special flag to enable annobin annotations for statically linked +# assembler code. +BuildFlags="$BuildFlags -Wa,--generate-missing-build-notes=yes" + ############################################################################## # %%build - Generic options. ############################################################################## @@ -1845,6 +1850,9 @@ fi %endif %changelog +* Fri May 4 2018 Florian Weimer - 2.27.9000-16 +- Add annobin annotations to assembler code (#1548438) + * Thu Apr 19 2018 Florian Weimer - 2.27.9000-15 - Auto-sync with upstream branch master, commit 0085be1415a38b40a5a1a12e49368498f1687380.