summaryrefslogtreecommitdiff
path: root/patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch')
-rw-r--r--patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch b/patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch
new file mode 100644
index 0000000..1c69691
--- /dev/null
+++ b/patches/glibc/2_9/240-i386-LOAD_PIC_REG.patch
@@ -0,0 +1,23 @@
+Original patch from: gentoo/src/patchsets/glibc/2.9/1050_all_glibc-i386-LOAD_PIC_REG.patch
+
+-= BEGIN original header =-
+From e41177ea18a77a7f62328293b4fd49ae17482e77 Mon Sep 17 00:00:00 2001
+From: Ulrich Drepper <drepper@redhat.com>
+Date: Sat, 6 Dec 2008 00:15:17 +0000
+Subject: [PATCH] (_dl_tlsdesc_dynamic): Use LOAD_PIC_REG instead of doing things manually.
+
+-= END original header =-
+
+diff -durN glibc-2_9.orig/sysdeps/i386/dl-tlsdesc.S glibc-2_9/sysdeps/i386/dl-tlsdesc.S
+--- glibc-2_9.orig/sysdeps/i386/dl-tlsdesc.S 2008-05-13 07:33:06.000000000 +0200
++++ glibc-2_9/sysdeps/i386/dl-tlsdesc.S 2009-02-02 22:00:56.000000000 +0100
+@@ -128,8 +128,7 @@
+ .Lslow:
+ cfi_adjust_cfa_offset (28)
+ movl %ebx, 16(%esp)
+- call __i686.get_pc_thunk.bx
+- addl $_GLOBAL_OFFSET_TABLE_, %ebx
++ LOAD_PIC_REG (bx)
+ call ___tls_get_addr@PLT
+ movl 16(%esp), %ebx
+ jmp .Lret