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

Resolves: #1460254
This commit is contained in:
Nick Clifton 2017-07-18 11:49:37 +01:00
parent 2c04e7867a
commit ac9fac1ef2
2 changed files with 17 additions and 1 deletions

View File

@ -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;

View File

@ -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 <nickc@redhat.com> 2.28-25
- Fix s390 assembler so that it remove fake local symbols from its output.
(#1460254)
* Mon Jun 12 2017 Nick Clifton <nickc@redhat.com> 2.27-24
- Import FSF binutils patch to fix aligning code fragments in AArch64 assembler.
(#1460420)