summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386
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/i386
parent1ab4af32dbead92763566cc0cce9b0ff2d63598d (diff)
Hide fork and vfork, use the newly introduced *alias
Diffstat (limited to 'libc/sysdeps/linux/i386')
-rw-r--r--libc/sysdeps/linux/i386/vfork.S9
1 files changed, 5 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/i386/vfork.S b/libc/sysdeps/linux/i386/vfork.S
index d382dbac3..18a8e5dfa 100644
--- a/libc/sysdeps/linux/i386/vfork.S
+++ b/libc/sysdeps/linux/i386/vfork.S
@@ -3,17 +3,20 @@
*
*/
+#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
.align 1<<4
@@ -27,7 +30,5 @@ __vfork:
ret
.size __vfork,.-__vfork
-
-
-.weak vfork ; vfork = __vfork
#endif
+strong_alias(__vfork,vfork)