]> git.pld-linux.org Git - packages/glibc.git/blame - glibc-i686.patch
- more workarounds
[packages/glibc.git] / glibc-i686.patch
CommitLineData
d11fa1bd
AM
1--- glibc-2.11.1/sysdeps/i386/sysdep.h~ 2009-12-08 21:10:20.000000000 +0100
2+++ glibc-2.11.1/sysdeps/i386/sysdep.h 2010-04-24 23:17:12.477558192 +0200
3@@ -133,6 +133,8 @@
4 cfi_adjust_cfa_offset (-4); \
5 addl $_GLOBAL_OFFSET_TABLE+[.-0b], %ebx;
6
7+# define __old__i686 __i686
8+# undef __i686
9 # define SETUP_PIC_REG(reg) \
10 .ifndef __i686.get_pc_thunk.reg; \
11 .section .gnu.linkonce.t.__i686.get_pc_thunk.reg,"ax",@progbits; \
12@@ -146,6 +148,8 @@
13 .previous; \
14 .endif; \
15 call __i686.get_pc_thunk.reg
16+# define __i686 __old__i686
17+# undef __old__i686
18
19 # define LOAD_PIC_REG(reg) \
20 SETUP_PIC_REG(reg); addl $_GLOBAL_OFFSET_TABLE_, %e##reg
8a5f5b44
AM
21--- glibc-2.11.1/sysdeps/i386/i686/memcmp.S.org 2010-04-24 23:25:03.876469117 +0200
22+++ glibc-2.11.1/sysdeps/i386/i686/memcmp.S 2010-04-24 23:26:58.336457933 +0200
23@@ -34,6 +34,8 @@
24 /* Load an entry in a jump table into EBX. TABLE is a jump table
25 with relative offsets. INDEX is a register contains the index
26 into the jump table. */
27+# define __old__i686 __i686
28+# undef __i686
29 #define LOAD_JUMP_TABLE_ENTRY(TABLE, INDEX) \
30 /* We first load PC into EBX. */ \
31 call __i686.get_pc_thunk.bx; \
32@@ -42,6 +44,8 @@
33 /* Get the entry and convert the relative offset to the \
34 absolute address. */ \
35 addl (%ebx,INDEX,4), %ebx
36+# define __i686 __old__i686
37+# undef __old__i686
38
39 .section .gnu.linkonce.t.__i686.get_pc_thunk.bx,"ax",@progbits
40 .globl __i686.get_pc_thunk.bx
This page took 0.033717 seconds and 4 git commands to generate.