From 48143d8a8f92fd69d95564516fd1b7cf122511b1 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 24 Jan 2006 17:18:19 +0000 Subject: fork/vfork weak in libc, strong in libpthread --- libc/sysdeps/linux/sh/vfork.S | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/sh/vfork.S') diff --git a/libc/sysdeps/linux/sh/vfork.S b/libc/sysdeps/linux/sh/vfork.S index 5c6a356e6..a53d04a0b 100644 --- a/libc/sysdeps/linux/sh/vfork.S +++ b/libc/sysdeps/linux/sh/vfork.S @@ -32,11 +32,12 @@ and the process ID of the new process to the old process. */ .text -.globl vfork -.type vfork,@function +.globl __vfork +.hidden __vfork +.type __vfork,@function .align 4 -vfork: +__vfork: mov.w .L2, r3 trapa #0x10 mov r0, r1 @@ -106,7 +107,8 @@ vfork: .L3: .word __NR_fork -.size vfork, .-vfork +.size __vfork, .-__vfork +weak_alias(__vfork,vfork) libc_hidden_def(vfork) #include "syscall_error.S" -- cgit v1.2.3