diff options
author | Austin Foxley <austinf@cetoncorp.com> | 2009-10-17 13:09:30 -0700 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2009-10-17 13:09:30 -0700 |
commit | 6ffcc881dc156e1c9c0bc4b153091b4760b584cb (patch) | |
tree | b4158ab08d81993e6b33bd8963c9e571c7aff521 /libc/sysdeps/linux/sh/syscall_error.S | |
parent | 843d561eba0c4856fc4465215d56c81b868dec14 (diff) |
sh specific bits needed for nptl
* unified atomic.h compare and exchange macros
* clone.S with RESET_PID support
* sh specific versions of pread/pwrite with cancellation support
* check SHARED instead of PIC
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux/sh/syscall_error.S')
-rw-r--r-- | libc/sysdeps/linux/sh/syscall_error.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/sh/syscall_error.S b/libc/sysdeps/linux/sh/syscall_error.S index f55dd535a..d943dcbb0 100644 --- a/libc/sysdeps/linux/sh/syscall_error.S +++ b/libc/sysdeps/linux/sh/syscall_error.S @@ -3,7 +3,7 @@ __syscall_error: /* Call errno_location, store '-r4' in errno and return -1 */ mov.l r12, @-r15 sts.l pr, @-r15 -#ifdef __PIC__ +#ifdef SHARED mova .LG, r0 mov.l .LG, r12 add r0, r12 @@ -27,7 +27,7 @@ __syscall_error: .align 4 -#ifdef __PIC__ +#ifdef SHARED 1: .long __errno_location@GOT .LG: .long _GLOBAL_OFFSET_TABLE_ #else |