summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-30 05:07:36 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-01 17:49:03 +0100
commitc0a09054b238982e7d40d7dd6fe571bbd9664fe3 (patch)
treedd6712c210e38f454b8be1f34a7ed64a518aac4e /libc/sysdeps/linux
parentdc79afc0facb5de24d63fbaba6a345222a86d0d5 (diff)
aarch64: fix syscall_error_handler, fixes tst-mqueue errors
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/aarch64/sysdep.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/libc/sysdeps/linux/aarch64/sysdep.h b/libc/sysdeps/linux/aarch64/sysdep.h
index 177b0f15f..cc2ffcb65 100644
--- a/libc/sysdeps/linux/aarch64/sysdep.h
+++ b/libc/sysdeps/linux/aarch64/sysdep.h
@@ -112,19 +112,13 @@ END (name)
# define ret_ERRVAL ret
-#if defined _LIBC_REENTRANT
-# if defined USE___THREAD
-# define SYSCALL_ERROR_ERRNO errno
-# endif
-#endif
-
-#if defined USE___THREAD
+#if defined NOT_IN_libc
# define SYSCALL_ERROR .Lsyscall_error
# define SYSCALL_ERROR_HANDLER \
.Lsyscall_error: \
- adrp x1, :gottprel:SYSCALL_ERROR_ERRNO; \
+ adrp x1, :gottprel:errno; \
neg w2, w0; \
- ldr x1, [x1, :gottprel_lo12:SYSCALL_ERROR_ERRNO]; \
+ ldr x1, [x1, :gottprel_lo12:errno]; \
mrs x3, tpidr_el0; \
mov x0, -1; \
str w2, [x1, x3]; \