diff options
author | Peter Griffin <pgriffin@mpc-data.co.uk> | 2009-04-29 12:02:47 +0100 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2009-07-09 08:47:50 +0200 |
commit | 9dd284eb5d042d5cb4fdfca892f5374bdeab4d11 (patch) | |
tree | 6e62fbe38d3b9bdfcf550060900ea9e43ed75417 /libc/sysdeps/linux/sh/syscall_error.S | |
parent | a124fab2628b2da836836e824669ccee6b75cfd8 (diff) |
sh: Change __HAVE_SHARED__ to __PIC__
Generate PIC relocations when __PIC__ is defined rather than
__HAVE_SHARED__ (like other architectures).
Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.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 1764ebfc8..f55dd535a 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 __HAVE_SHARED__ +#ifdef __PIC__ mova .LG, r0 mov.l .LG, r12 add r0, r12 @@ -27,7 +27,7 @@ __syscall_error: .align 4 -#ifdef __HAVE_SHARED__ +#ifdef __PIC__ 1: .long __errno_location@GOT .LG: .long _GLOBAL_OFFSET_TABLE_ #else |