mirror of git://sourceware.org/git/glibc.git
2002-09-30 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/i386/sysdep.h [USE_TLS && HAVE___THREAD] (SYSCALL_ERROR_HANDLER): Use direct-%gs form of TLS access for errno.
This commit is contained in:
parent
82685ecbd7
commit
7de490c686
|
|
@ -99,11 +99,10 @@ __i686.get_pc_thunk.reg: \
|
||||||
# define SYSCALL_ERROR_HANDLER \
|
# define SYSCALL_ERROR_HANDLER \
|
||||||
0:SETUP_PIC_REG (cx); \
|
0:SETUP_PIC_REG (cx); \
|
||||||
addl $_GLOBAL_OFFSET_TABLE_, %ecx; \
|
addl $_GLOBAL_OFFSET_TABLE_, %ecx; \
|
||||||
|
movl errno@gotntpoff(%ecx), %ecx; \
|
||||||
xorl %edx, %edx; \
|
xorl %edx, %edx; \
|
||||||
subl %eax, %edx; \
|
subl %eax, %edx; \
|
||||||
movl %gs:0, %eax; \
|
movl %edx, %gs:0(%ecx); \
|
||||||
subl errno@gottpoff(%ecx), %eax; \
|
|
||||||
movl %edx, (%eax); \
|
|
||||||
orl $-1, %eax; \
|
orl $-1, %eax; \
|
||||||
jmp L(pseudo_end);
|
jmp L(pseudo_end);
|
||||||
# else
|
# else
|
||||||
|
|
@ -127,7 +126,7 @@ __i686.get_pc_thunk.reg: \
|
||||||
# endif
|
# endif
|
||||||
# else
|
# else
|
||||||
# define SYSCALL_ERROR_HANDLER \
|
# define SYSCALL_ERROR_HANDLER \
|
||||||
0:define SETUP_PIC_REG(cx); \
|
0:SETUP_PIC_REG(cx); \
|
||||||
addl $_GLOBAL_OFFSET_TABLE_, %ecx; \
|
addl $_GLOBAL_OFFSET_TABLE_, %ecx; \
|
||||||
xorl %edx, %edx; \
|
xorl %edx, %edx; \
|
||||||
subl %eax, %edx; \
|
subl %eax, %edx; \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue