From 21b973b9ce3fca84bd1d0297c08b5397e89fb590 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Aug 06 2009 13:17:59 +0000 Subject: 2.19.51.0.14-31.fc12 --- diff --git a/binutils-2.19.51.0.14-unique-is-global.patch b/binutils-2.19.51.0.14-unique-is-global.patch new file mode 100644 index 0000000..ad5b19e --- /dev/null +++ b/binutils-2.19.51.0.14-unique-is-global.patch @@ -0,0 +1,42 @@ +2009-08-06 Jakub Jelinek + Alan Modra + + 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))); + } diff --git a/binutils.spec b/binutils.spec index 9eee705..67302db 100644 --- a/binutils.spec +++ b/binutils.spec @@ -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.patch 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 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 - 2.19.51.0.14-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild