rpms/binutils/devel binutils-2.19.51.0.14-unique-is-global.patch, NONE, 1.1 binutils.spec, 1.173, 1.174

Jakub Jelinek jakub at fedoraproject.org
Thu Aug 6 13:17:59 UTC 2009


Author: jakub

Update of /cvs/pkgs/rpms/binutils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6187

Modified Files:
	binutils.spec 
Added Files:
	binutils-2.19.51.0.14-unique-is-global.patch 
Log Message:
2.19.51.0.14-31.fc12

binutils-2.19.51.0.14-unique-is-global.patch:
 elf.c         |    2 +-
 elf32-mips.c  |    2 +-
 elfn32-mips.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--- NEW FILE binutils-2.19.51.0.14-unique-is-global.patch ---
2009-08-06  Jakub Jelinek  <jakub at redhat.com>
	    Alan Modra  <amodra at bigpond.net.au>

	PR binutils/10492
	* elf.c (sym_is_global): Return true even for BSF_GNU_UNIQUE
	symbols.
	* elf32-mips.c (mips_elf_sym_is_global): Likewise.
	* elfn32-mips.c (mips_elf_sym_is_global): Likewise.

--- bfd/elf.c.jj	2009-08-06 14:20:38.000000000 +0200
+++ bfd/elf.c	2009-08-06 14:41:06.000000000 +0200
@@ -3084,7 +3084,7 @@ sym_is_global (bfd *abfd, asymbol *sym)
   if (bed->elf_backend_sym_is_global)
     return (*bed->elf_backend_sym_is_global) (abfd, sym);
 
-  return ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0
+  return ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_GNU_UNIQUE)) != 0
 	  || bfd_is_und_section (bfd_get_section (sym))
 	  || bfd_is_com_section (bfd_get_section (sym)));
 }
--- bfd/elf32-mips.c.jj	2009-08-06 14:17:48.000000000 +0200
+++ bfd/elf32-mips.c	2009-08-06 14:41:52.000000000 +0200
@@ -1450,7 +1450,7 @@ mips_elf_sym_is_global (bfd *abfd ATTRIB
   if (SGI_COMPAT (abfd))
     return (sym->flags & BSF_SECTION_SYM) == 0;
   else
-    return ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0
+    return ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_GNU_UNIQUE)) != 0
 	    || bfd_is_und_section (bfd_get_section (sym))
 	    || bfd_is_com_section (bfd_get_section (sym)));
 }
--- bfd/elfn32-mips.c.jj	2008-11-19 15:50:38.000000000 +0100
+++ bfd/elfn32-mips.c	2009-08-06 14:42:32.000000000 +0200
@@ -2289,7 +2289,7 @@ mips_elf_sym_is_global (bfd *abfd ATTRIB
   if (SGI_COMPAT (abfd))
     return (sym->flags & BSF_SECTION_SYM) == 0;
   else
-    return ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0
+    return ((sym->flags & (BSF_GLOBAL | BSF_WEAK | BSF_GNU_UNIQUE)) != 0
 	    || bfd_is_und_section (bfd_get_section (sym))
 	    || bfd_is_com_section (bfd_get_section (sym)));
 }


Index: binutils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/binutils/devel/binutils.spec,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -p -r1.173 -r1.174
--- binutils.spec	24 Jul 2009 18:04:11 -0000	1.173
+++ binutils.spec	6 Aug 2009 13:17:59 -0000	1.174
@@ -17,7 +17,7 @@
 Summary: A GNU collection of binary utilities
 Name: %{?cross}binutils%{?_with_debug:-debug}
 Version: 2.19.51.0.14
-Release: 30%{?dist}
+Release: 31%{?dist}
 License: GPLv3+
 Group: Development/Tools
 URL: http://sources.redhat.com/binutils
@@ -31,6 +31,7 @@ Patch05: binutils-2.19.51.0.10-version.p
 Patch06: binutils-2.19.51.0.10-set-long-long.patch
 Patch07: binutils-2.19.51.0.10-build-id.patch
 Patch09: binutils-2.19.51.0.11-moxie.patch
+Patch10: binutils-2.19.51.0.14-unique-is-global.patch
 
 %if 0%{?_with_debug:1}
 # Define this if you want to skip the strip step and preserve debug info.
@@ -103,6 +104,7 @@ to consider using libelf instead of BFD.
 %patch06 -p0 -b .set-long-long~
 %patch07 -p0 -b .build-id~
 %patch09 -p0 -b .moxie~
+%patch10 -p0 -b .unique-is-global~
 
 # We cannot run autotools as there is an exact requirement of autoconf-2.59.
 
@@ -353,6 +355,9 @@ fi
 %endif # %{isnative}
 
 %changelog
+* Thu Aug  6 2009 Jakub Jelinek <jakub at redhat.com> 2.19.51.0.14-31
+- Fix strip on objects with STB_GNU_UNIQUE symbols. (BZ 515700, PR binutils/10492)
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.19.51.0.14-30
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 




More information about the fedora-extras-commits mailing list