summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/i386/sysdep.h
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-11-29 10:56:29 -0800
committerAustin Foxley <austinf@cetoncorp.com>2009-11-29 10:56:29 -0800
commit9a7506e8952851c5aea4471d02fd83c4ba334901 (patch)
treea580641b2128fd453c552f4ac91bbf7fa4f67a64 /libpthread/nptl/sysdeps/i386/sysdep.h
parent8359f22a288236613e64f2b3e96ef6e2ac2de097 (diff)
don't use __i686 in symbol names as it seems gcc can define it
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/i386/sysdep.h')
-rw-r--r--libpthread/nptl/sysdeps/i386/sysdep.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/libpthread/nptl/sysdeps/i386/sysdep.h b/libpthread/nptl/sysdeps/i386/sysdep.h
index 7f278905f..c52df2d6d 100644
--- a/libpthread/nptl/sysdeps/i386/sysdep.h
+++ b/libpthread/nptl/sysdeps/i386/sysdep.h
@@ -122,19 +122,20 @@ lose: SYSCALL_PIC_SETUP \
cfi_adjust_cfa_offset (-4); \
addl $_GLOBAL_OFFSET_TABLE+[.-0b], %ebx;
+
# define SETUP_PIC_REG(reg) \
- .ifndef __i686.get_pc_thunk.reg; \
- .section .gnu.linkonce.t.__i686.get_pc_thunk.reg,"ax",@progbits; \
- .globl __i686.get_pc_thunk.reg; \
- .hidden __i686.get_pc_thunk.reg; \
- .type __i686.get_pc_thunk.reg,@function; \
-__i686.get_pc_thunk.reg: \
+ .ifndef __x86.get_pc_thunk.reg; \
+ .section .gnu.linkonce.t.__x86.get_pc_thunk.reg,"ax",@progbits; \
+ .globl __x86.get_pc_thunk.reg; \
+ .hidden __x86.get_pc_thunk.reg; \
+ .type __x86.get_pc_thunk.reg,@function; \
+__x86.get_pc_thunk.reg: \
movl (%esp), %e##reg; \
ret; \
- .size __i686.get_pc_thunk.reg, . - __i686.get_pc_thunk.reg; \
+ .size __x86.get_pc_thunk.reg, . - __x86.get_pc_thunk.reg; \
.previous; \
.endif; \
- call __i686.get_pc_thunk.reg
+ call __x86.get_pc_thunk.reg
# define LOAD_PIC_REG(reg) \
SETUP_PIC_REG(reg); addl $_GLOBAL_OFFSET_TABLE_, %e##reg