1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.9/240-i386-LOAD_PIC_REG.patch Sun May 08 14:14:40 2011 +0200
1.3 @@ -0,0 +1,23 @@
1.4 +Original patch from: gentoo/src/patchsets/glibc/2.9/1050_all_glibc-i386-LOAD_PIC_REG.patch
1.5 +
1.6 +-= BEGIN original header =-
1.7 +From e41177ea18a77a7f62328293b4fd49ae17482e77 Mon Sep 17 00:00:00 2001
1.8 +From: Ulrich Drepper <drepper@redhat.com>
1.9 +Date: Sat, 6 Dec 2008 00:15:17 +0000
1.10 +Subject: [PATCH] (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG instead of doing things manually.
1.11 +
1.12 +-= END original header =-
1.13 +
1.14 +diff -durN glibc-2_9.orig/sysdeps/i386/dl-tlsdesc.S glibc-2_9/sysdeps/i386/dl-tlsdesc.S
1.15 +--- glibc-2_9.orig/sysdeps/i386/dl-tlsdesc.S 2008-05-13 07:33:06.000000000 +0200
1.16 ++++ glibc-2_9/sysdeps/i386/dl-tlsdesc.S 2009-02-02 22:00:56.000000000 +0100
1.17 +@@ -128,8 +128,7 @@
1.18 + .Lslow:
1.19 + cfi_adjust_cfa_offset (28)
1.20 + movl %ebx, 16(%esp)
1.21 +- call __i686.get_pc_thunk.bx
1.22 +- addl $_GLOBAL_OFFSET_TABLE_, %ebx
1.23 ++ LOAD_PIC_REG (bx)
1.24 + call ___tls_get_addr@PLT
1.25 + movl 16(%esp), %ebx
1.26 + jmp .Lret