Fix s390 assembler so that it remove fake local symbols from its output.

Resolves: #1460254
This commit is contained in:
Nick Clifton 2017-07-17 17:38:23 +01:00
parent 44c0bed7f3
commit 41e2613249
2 changed files with 17 additions and 1 deletions

View File

@ -193,3 +193,15 @@ index 005f1d5..2a75e0b 100644
Contents of the .debug_aranges section:
Length: (44|28)
--- 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 (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;

View File

@ -43,7 +43,7 @@
Summary: A GNU collection of binary utilities
Name: %{?cross}binutils%{?_with_debug:-debug}
Version: 2.28
Release: 10%{?dist}
Release: 11%{?dist}
License: GPLv3+
Group: Development/Tools
URL: http://sources.redhat.com/binutils
@ -602,6 +602,10 @@ exit 0
%endif # %{isnative}
%changelog
* Mon Jul 17 2017 Nick Clifton <nickc@redhat.com> 2.28-11
- Fix s390 assembler so that it remove fake local symbols from its output.
(#1460254)
* Wed Jun 28 2017 Nick Clifton <nickc@redhat.com> 2.28-10
- Update support for GNU Build Attribute notes to include version 2 notes.