summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/powerpc/vfork.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/vfork.S')
-rw-r--r--libc/sysdeps/linux/powerpc/vfork.S9
1 files changed, 6 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/powerpc/vfork.S b/libc/sysdeps/linux/powerpc/vfork.S
index 67d8aaeac..7cf5eaa16 100644
--- a/libc/sysdeps/linux/powerpc/vfork.S
+++ b/libc/sysdeps/linux/powerpc/vfork.S
@@ -1,14 +1,17 @@
+#include <features.h>
#include <sys/syscall.h>
#ifndef __NR_vfork
/* No vfork so use fork instead */
-.weak vfork ; vfork = __libc_fork
+hidden_strong_alias(__fork,__vfork)
+weak_alias(vfork,__libc_fork)
#else
.text
.global __vfork
+.hidden __vfork
.type __vfork,@function
.type __syscall_error,@function
@@ -17,7 +20,7 @@ __vfork:
sc
bnslr+
b __syscall_error
-.size __vfork,.-__vfork
-.weak vfork ; vfork = __vfork
+.size __vfork,.-__vfork
#endif
+strong_alias(__vfork,vfork)