Branch to __fork whenever libpthread.so is loaded.
This commit is contained in:
parent
1f503475a5
commit
4053ccfddf
|
@ -29,11 +29,16 @@
|
||||||
|
|
||||||
ENTRY (__vfork)
|
ENTRY (__vfork)
|
||||||
|
|
||||||
#ifdef __NR_vfork
|
#ifdef SHARED
|
||||||
|
tstl (__libc_pthread_functions@GOTPC, %pc)
|
||||||
SINGLE_THREAD_P
|
#else
|
||||||
|
.weak __pthread_fork
|
||||||
|
movel #__pthread_fork, %d0
|
||||||
|
#endif
|
||||||
jbne HIDDEN_JUMPTARGET (__fork)
|
jbne HIDDEN_JUMPTARGET (__fork)
|
||||||
|
|
||||||
|
#ifdef __NR_vfork
|
||||||
|
|
||||||
/* Pop the return PC value into A0. */
|
/* Pop the return PC value into A0. */
|
||||||
movel %sp@+, %a0
|
movel %sp@+, %a0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue