[PATCH] Fix vfork with --enable-add-ons=linuxthreads

Jakub Jelinek jakub@redhat.com
Mon Jan 13 04:59:00 GMT 2003


On Fri, Jan 10, 2003 at 11:07:24AM -0800, Richard Henderson wrote:
> On Thu, Jan 09, 2003 at 02:10:10PM +0100, Jakub Jelinek wrote:
> > +	bne	t0, HIDDEN_JUMPTARGET (__fork) !samegp
> > +	lda	v0, SYS_ify(vfork)
> > +	call_pal PAL_callsys
> > +	bne	a3, __syscall_error !samegp
> 
> This will only work in a shared library context.  Will this
> ever get put into a non-pic archive?

Yes. Is gp not set up there or is the problem that __fork can be
far away from __vfork?
The code can use #ifdef SHARED #else #endif if needed.

	Jakub



More information about the Libc-hacker mailing list