]> git.pld-linux.org Git - packages/glibc.git/blame - glibc-i686.patch
- more workarounds
[packages/glibc.git] / glibc-i686.patch
CommitLineData
3fd9f6a7
AM
1--- glibc-2.11.1/sysdeps/i386/sysdep.h.org 2010-04-24 23:40:14.583055795 +0200
2+++ glibc-2.11.1/sysdeps/i386/sysdep.h 2010-04-24 23:42:32.203043803 +0200
3@@ -133,6 +133,10 @@
d11fa1bd
AM
4 cfi_adjust_cfa_offset (-4); \
5 addl $_GLOBAL_OFFSET_TABLE+[.-0b], %ebx;
6
3fd9f6a7 7+#ifdef __i686
d11fa1bd
AM
8+# define __old__i686 __i686
9+# undef __i686
3fd9f6a7 10+#endif
d11fa1bd
AM
11 # define SETUP_PIC_REG(reg) \
12 .ifndef __i686.get_pc_thunk.reg; \
13 .section .gnu.linkonce.t.__i686.get_pc_thunk.reg,"ax",@progbits; \
3fd9f6a7 14@@ -146,6 +150,10 @@
d11fa1bd
AM
15 .previous; \
16 .endif; \
17 call __i686.get_pc_thunk.reg
3fd9f6a7 18+#ifdef __old__i686
d11fa1bd
AM
19+# define __i686 __old__i686
20+# undef __old__i686
3fd9f6a7 21+#endif
d11fa1bd
AM
22
23 # define LOAD_PIC_REG(reg) \
24 SETUP_PIC_REG(reg); addl $_GLOBAL_OFFSET_TABLE_, %e##reg
3fd9f6a7
AM
25--- glibc-2.11.1/sysdeps/i386/i686/memcmp.S.org 2010-04-24 23:43:55.326564190 +0200
26+++ glibc-2.11.1/sysdeps/i386/i686/memcmp.S 2010-04-24 23:44:24.826561120 +0200
27@@ -34,6 +34,10 @@
8a5f5b44
AM
28 /* Load an entry in a jump table into EBX. TABLE is a jump table
29 with relative offsets. INDEX is a register contains the index
30 into the jump table. */
3fd9f6a7 31+#ifdef __i686
8a5f5b44
AM
32+# define __old__i686 __i686
33+# undef __i686
3fd9f6a7 34+#endif
8a5f5b44
AM
35 #define LOAD_JUMP_TABLE_ENTRY(TABLE, INDEX) \
36 /* We first load PC into EBX. */ \
37 call __i686.get_pc_thunk.bx; \
3fd9f6a7 38@@ -42,6 +46,10 @@
8a5f5b44
AM
39 /* Get the entry and convert the relative offset to the \
40 absolute address. */ \
41 addl (%ebx,INDEX,4), %ebx
3fd9f6a7 42+#ifdef __old__i686
8a5f5b44
AM
43+# define __i686 __old__i686
44+# undef __old__i686
3fd9f6a7 45+#endif
8a5f5b44
AM
46
47 .section .gnu.linkonce.t.__i686.get_pc_thunk.bx,"ax",@progbits
48 .globl __i686.get_pc_thunk.bx
3fd9f6a7
AM
49--- glibc-2.11.1/sysdeps/unix/sysv/linux/i386/sysdep.h.org 2010-04-24 23:45:37.399887418 +0200
50+++ glibc-2.11.1/sysdeps/unix/sysv/linux/i386/sysdep.h 2010-04-24 23:46:12.546342525 +0200
51@@ -537,6 +537,10 @@
52
53 /* Consistency check for position-independent code. */
54 #ifdef __PIC__
55+#ifdef __i686
56+# define __old__i686 __i686
57+# undef __i686
58+#endif
59 # define check_consistency() \
60 ({ int __res; \
61 __asm__ __volatile__ \
62@@ -556,6 +560,10 @@
63 ".previous" \
64 : "=c" (__res)); \
65 __res; })
66+#ifdef __old__i686
67+# define __i686 __old__i686
68+# undef __old__i686
69+#endif
70 #endif
71
72 #endif /* __ASSEMBLER__ */
This page took 0.070129 seconds and 4 git commands to generate.