summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc/fork.S
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-21 21:49:49 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:40 +0200
commite4b5997fc1cea7eeaad155aad02b8b1997143874 (patch)
treec5da88f5f87a537913ac8506b30193bde2125d9d /libc/sysdeps/linux/sparc/fork.S
parent9df9c60aa93287211cf9698eb979d80fded765dc (diff)
fork: provide __libc_fork only if THREADS are enabled
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/sparc/fork.S')
-rw-r--r--libc/sysdeps/linux/sparc/fork.S17
1 files changed, 11 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/sparc/fork.S b/libc/sysdeps/linux/sparc/fork.S
index 7ead409f0..1795eb638 100644
--- a/libc/sysdeps/linux/sparc/fork.S
+++ b/libc/sysdeps/linux/sparc/fork.S
@@ -23,11 +23,14 @@
#include <sys/syscall.h>
.text
-.global __libc_fork
-.type __libc_fork,%function
+.global fork
+#ifdef __UCLIBC_HAS_THREADS__
+.weak fork
+#endif
+.type fork,%function
.align 4
-__libc_fork:
+fork:
mov __NR_fork, %g1
ta 0x10
bcc,a 9000f
@@ -44,6 +47,8 @@ __libc_fork:
retl
and %o0, %o1, %o0
-.size __libc_fork,.-__libc_fork
-weak_alias(__libc_fork,fork)
-libc_hidden_weak(fork)
+.size fork,.-fork
+#ifdef __UCLIBC_HAS_THREADS__
+strong_alias(fork,__libc_fork)
+#endif
+libc_hidden_def(fork)