diff --git a/binutils-2.28-gas-comp_dir.patch b/binutils-2.28-gas-comp_dir.patch index 1eeda59..98e97ed 100644 --- a/binutils-2.28-gas-comp_dir.patch +++ b/binutils-2.28-gas-comp_dir.patch @@ -191,3 +191,15 @@ index 4bb658b..e02b6e8 100644 Contents of the .debug_aranges section: Length: 44 +--- binutils.orig/gas/config/tc-s390.c 2017-07-17 16:58:31.919195528 +0100 ++++ binutils-2.28/gas/config/tc-s390.c 2017-07-17 17:26:11.233142088 +0100 +@@ -2135,6 +2135,9 @@ md_pcrel_from_section (fixS *fixp, segT + int + tc_s390_fix_adjustable (fixS *fixP) + { ++ /* Always convert local symbols - they should never be retained in the output. */ ++ if (fixP->fx_addsy != NULL && S_IS_LOCAL (fixP->fx_addsy)) ++ return 1; + /* Don't adjust references to merge sections. */ + if ((S_GET_SEGMENT (fixP->fx_addsy)->flags & SEC_MERGE) != 0) + return 0; diff --git a/binutils.spec b/binutils.spec index e533a46..482db6b 100644 --- a/binutils.spec +++ b/binutils.spec @@ -43,7 +43,7 @@ Summary: A GNU collection of binary utilities Name: %{?cross}binutils%{?_with_debug:-debug} Version: 2.27 -Release: 24%{?dist} +Release: 25%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -629,6 +629,10 @@ exit 0 %endif # %{isnative} %changelog +* Tue Jul 18 2017 Nick Clifton 2.28-25 +- Fix s390 assembler so that it remove fake local symbols from its output. + (#1460254) + * Mon Jun 12 2017 Nick Clifton 2.27-24 - Import FSF binutils patch to fix aligning code fragments in AArch64 assembler. (#1460420)