[PATCH] Apply i386/sysdep.h change to x86_64/sysdep.h too
Jakub Jelinek
jakub@redhat.com
Wed Oct 16 15:10:00 GMT 2002
Hi!
I think x86_64/sysdep.h should stay in sync.
2002-10-16 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
Use __libc_errno only for libc itself.
--- libc/sysdeps/unix/sysv/linux/x86_64/sysdep.h.jj 2002-10-16 23:10:03.000000000 +0200
+++ libc/sysdeps/unix/sysv/linux/x86_64/sysdep.h 2002-10-16 23:11:07.000000000 +0200
@@ -93,9 +93,14 @@
orq $-1, %rax; \
jmp L(pseudo_end);
#elif USE___THREAD
+# ifndef NOT_IN_libc
+# define SYSCALL_ERROR_ERRNO __libc_errno
+# else
+# define SYSCALL_ERROR_ERRNO errno
+# endif
# define SYSCALL_ERROR_HANDLER \
0: \
- movq __libc_errno@GOTTPOFF(%rip), %rcx; \
+ movq SYSCALL_ERROR_ERRNO@GOTTPOFF(%rip), %rcx;\
xorq %rdx, %rdx; \
subq %rax, %rdx; \
movl %edx, %fs:(%rcx); \
Jakub
More information about the Libc-hacker
mailing list