This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]