aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/x86_64
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-10-11 12:03:29 +0000
committerRoland McGrath <roland@gnu.org>2002-10-11 12:03:29 +0000
commit1077a5f2d3b1b649821df347840277387a32c75f (patch)
treedc4d80ccfea9430d7e33c7976fc8f6cb5f054642 /sysdeps/unix/sysv/linux/x86_64
parent3021e36d989d96ddb46e4f98da3dc91eddcf725d (diff)
downloadglibc-1077a5f2d3b1b649821df347840277387a32c75f.tar
glibc-1077a5f2d3b1b649821df347840277387a32c75f.tar.gz
glibc-1077a5f2d3b1b649821df347840277387a32c75f.tar.bz2
glibc-1077a5f2d3b1b649821df347840277387a32c75f.zip
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER): Add
missing labels and ; from last change.
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sysdep.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
index b0f51b4072..d7fde39311 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h
+++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
@@ -84,16 +84,18 @@
#define SYSCALL_ERROR_HANDLER /* Nothing here; code in sysdep.S is used. */
#elif USE___THREAD
# define SYSCALL_ERROR_HANDLER \
+0: \
movq errno@GOTTPOFF(%rip), %rcx; \
xorq %rdx, %rdx; \
subq %rax, %rdx; \
- movl %eax, %fs:0(%rcx)
+ movl %eax, %fs:0(%rcx);
#elif RTLD_PRIVATE_ERRNO
# define SYSCALL_ERROR_HANDLER \
+0: \
leaq errno(%rip), %rcx; \
xorq %rdx, %rdx; \
subq %rax, %rdx; \
- movl %eax, (%rcx)
+ movl %eax, (%rcx);
#elif defined _LIBC_REENTRANT
/* Store (- %rax) into errno through the GOT.
Note that errno occupies only 4 bytes. */