rpms/binutils/devel binutils-2.19.51.0.2-tls-get-addr.patch, NONE, 1.1 binutils.spec, 1.161, 1.162

Nicholas Clifton nickc at fedoraproject.org
Wed May 27 11:22:19 UTC 2009


Author: nickc

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

Modified Files:
	binutils.spec 
Added Files:
	binutils-2.19.51.0.2-tls-get-addr.patch 
Log Message:
- Import fix for binutils PR #9938.  (BZ 500295)


binutils-2.19.51.0.2-tls-get-addr.patch:

--- NEW FILE binutils-2.19.51.0.2-tls-get-addr.patch ---
diff -rcp ../copy-of-build-sources/bfd/elf32-i386.c bfd/elf32-i386.c
*** ../copy-of-build-sources/bfd/elf32-i386.c	2009-05-27 12:09:07.000000000 +0100
--- bfd/elf32-i386.c	2009-05-27 12:00:10.000000000 +0100
*************** elf_i386_check_tls_transition (bfd *abfd
*** 1024,1030 ****
  	      && h->root.root.string != NULL
  	      && (ELF32_R_TYPE (rel[1].r_info) == R_386_PC32
  		  || ELF32_R_TYPE (rel[1].r_info) == R_386_PLT32)
! 	      && (strcmp (h->root.root.string, "___tls_get_addr") == 0));
  
      case R_386_TLS_IE:
        /* Check transition from IE access model:
--- 1024,1030 ----
  	      && h->root.root.string != NULL
  	      && (ELF32_R_TYPE (rel[1].r_info) == R_386_PC32
  		  || ELF32_R_TYPE (rel[1].r_info) == R_386_PLT32)
! 	      && CONST_STRNEQ (h->root.root.string, "___tls_get_addr"));
  
      case R_386_TLS_IE:
        /* Check transition from IE access model:
diff -rcp ../copy-of-build-sources/bfd/elf64-x86-64.c bfd/elf64-x86-64.c
*** ../copy-of-build-sources/bfd/elf64-x86-64.c	2009-05-27 12:09:28.000000000 +0100
--- bfd/elf64-x86-64.c	2009-05-27 12:00:27.000000000 +0100
*************** elf64_x86_64_check_tls_transition (bfd *
*** 833,839 ****
  	      && h->root.root.string != NULL
  	      && (ELF64_R_TYPE (rel[1].r_info) == R_X86_64_PC32
  		  || ELF64_R_TYPE (rel[1].r_info) == R_X86_64_PLT32)
! 	      && (strcmp (h->root.root.string, "__tls_get_addr") == 0));
  
      case R_X86_64_GOTTPOFF:
        /* Check transition from IE access model:
--- 833,839 ----
  	      && h->root.root.string != NULL
  	      && (ELF64_R_TYPE (rel[1].r_info) == R_X86_64_PC32
  		  || ELF64_R_TYPE (rel[1].r_info) == R_X86_64_PLT32)
! 	      && CONST_STRNEQ (h->root.root.string, "__tls_get_addr"));
  
      case R_X86_64_GOTTPOFF:
        /* Check transition from IE access model:


Index: binutils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/binutils/devel/binutils.spec,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -p -r1.161 -r1.162
--- binutils.spec	15 Apr 2009 12:44:44 -0000	1.161
+++ binutils.spec	27 May 2009 11:21:47 -0000	1.162
@@ -17,7 +17,7 @@
 Summary: A GNU collection of binary utilities
 Name: %{?cross}binutils%{?_with_debug:-debug}
 Version: 2.19.51.0.2
-Release: 18%{?dist}
+Release: 19%{?dist}
 License: GPLv3+
 Group: Development/Tools
 URL: http://sources.redhat.com/binutils
@@ -32,6 +32,7 @@ Patch06: binutils-2.19.50.0.1-set-long-l
 Patch07: binutils-2.19.50.0.1-build-id.patch
 Patch08: binutils-2.19.51.0.2-ifunc.patch
 Patch09: binutils-2.19.51.0.2-IBM.patch
+Patch10: binutils-2.19.51.0.2-tls-get-addr.patch
 
 %if 0%{?_with_debug:1}
 # Define this if you want to skip the strip step and preserve debug info.
@@ -104,6 +105,7 @@ to consider using libelf instead of BFD.
 %patch07 -p0 -b .build-id~
 %patch08 -p1 -b .ifunc~
 %patch09 -p0 -b .IBM~
+%patch10 -p0 -b .tls-get-addr~
 
 # We cannot run autotools as there is an exact requirement of autoconf-2.59.
 
@@ -347,6 +349,9 @@ fi
 %endif # %{isnative}
 
 %changelog
+* Wed May 27 2009 Nick Clifton <nickc at redhat.com> 2.19.51.0.2-19
+- Import fix for binutils PR #9938.  (BZ 500295)
+
 * Wed Apr 15 2009 Nick Clifton <nickc at redhat.com> 2.19.51.0.2-18
 - Update IBM Power 7 support patch to fix tlbilx opcode.  (BZ 494718)
 




More information about the fedora-extras-commits mailing list