This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


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 roland/nptl-sh] SH: Consolidate NPTL/non versions of vfork


On 05/30/2014 09:19 AM, Roland McGrath wrote:
>> vfork.S part works as expected in my environment.
> Great.
> 
>>> > > --- /dev/null
>>> > > +++ b/sysdeps/unix/sysv/linux/sh/pt-vfork.S
>> > [snip]
>>> > > +#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_20)
>>> > > +# include <vfork.S>
>>> > > +
>>> > > +compat_symbol (__vfork, __vfork, GLIBC_2_0)
>>> > > +compat_symbol (vfork, vfork, GLIBC_2_0)
>>> > > +#endif
>> > 
>> > I thought that pt-vfork.S is for libpthread.so and
>> > it would be
>> > 
>> > #if SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_20)
>> > # include <vfork.S>
>> > 
>> > compat_symbol (libpthread, __vfork, __vfork, GLIBC_2_0)
>> > compat_symbol (libpthread, vfork, vfork, GLIBC_2_0)
>> > #endif
>> > 
>> > Am I missing something here?
> Nope.  You are correct.  It's easy to forget these little details when you
> don't bother trying to compile it. ;-)
> 
> I've made that fix on the branch.  Please let me know if it works now.
> (Or feel free to just commit it yourself if you prefer.)

You should be able to reuse the Alpha pt-vfork.S to get the compat symbols
correct.  C.f. Alpha's vfork.S for which symbols to define there.


r~


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