summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/clone.S
diff options
context:
space:
mode:
authorPeter Griffin <pgriffin@mpc-data.co.uk>2009-04-29 12:02:47 +0100
committerCarmelo Amoroso <carmelo.amoroso@st.com>2009-07-09 08:47:50 +0200
commit9dd284eb5d042d5cb4fdfca892f5374bdeab4d11 (patch)
tree6e62fbe38d3b9bdfcf550060900ea9e43ed75417 /libc/sysdeps/linux/sh/clone.S
parenta124fab2628b2da836836e824669ccee6b75cfd8 (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/clone.S')
-rw-r--r--libc/sysdeps/linux/sh/clone.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/sh/clone.S b/libc/sysdeps/linux/sh/clone.S
index b912db0ad..3d18b6dd0 100644
--- a/libc/sysdeps/linux/sh/clone.S
+++ b/libc/sysdeps/linux/sh/clone.S
@@ -26,7 +26,7 @@
#include <bits/sysnum.h>
-#ifdef __HAVE_SHARED__
+#ifdef __PIC__
#define PLTJMP(_x) _x@PLT
#else
#define PLTJMP(_x) _x
@@ -99,7 +99,7 @@ clone:
/* we are done, passing the return value through r0 */
mov.l .L1, r1
-#ifdef __HAVE_SHARED__
+#ifdef __PIC__
mov.l r12, @-r15
sts.l pr, @-r15
mov r0, r4