summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc/fork.S
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-15 19:49:58 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-15 19:49:58 +0000
commitf7c7c0e055425e0122996a91704cc12bfaeef308 (patch)
tree2c9723a6e45208c737d39c88b23b6103ab4292f6 /libc/sysdeps/linux/sparc/fork.S
parent1ab4af32dbead92763566cc0cce9b0ff2d63598d (diff)
Hide fork and vfork, use the newly introduced *alias
Diffstat (limited to 'libc/sysdeps/linux/sparc/fork.S')
-rw-r--r--libc/sysdeps/linux/sparc/fork.S15
1 files changed, 8 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/sparc/fork.S b/libc/sysdeps/linux/sparc/fork.S
index c382f4b4e..dfa109dcd 100644
--- a/libc/sysdeps/linux/sparc/fork.S
+++ b/libc/sysdeps/linux/sparc/fork.S
@@ -19,14 +19,16 @@
/* Code taken from glibc2.2.2/sysdeps/unix/sysv/linux/sparc/vfork.S */
+#include <features.h>
#include <sys/syscall.h>
.text
-.global __libc_fork
-.type __libc_fork,%function
+.global __fork
+.hidden __fork
+.type __fork,%function
.align 4
-__libc_fork:
+__fork:
mov __NR_fork, %g1
ta 0x10
bcc,a 9000f
@@ -43,7 +45,6 @@ __libc_fork:
retl
and %o0, %o1, %o0
-.size __libc_fork,.-__libc_fork
-
-.weak fork
- fork = __libc_fork
+.size __fork,.-__fork
+strong_alias(__fork,fork)
+weak_alias(fork,__libc_fork)