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] Binary compatibility fix for _res@GLIBC_2.0


On Mon, Jul 21, 2003 at 05:04:54PM -0700, Ulrich Drepper wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jakub Jelinek wrote:
> 
> > --- libc/nptl/descr.h.jj	2003-07-08 09:54:08.000000000 -0400
> > +++ libc/nptl/descr.h	2003-07-17 13:58:42.000000000 -0400
> > @@ -27,15 +27,20 @@
> >  #include <sys/types.h>
> >  #include <hp-timing.h>
> >  #include <list.h>
> > +#ifdef __need_struct_pthread_size
> > +#define lll_lock_t int
> > +#else
> >  #include <lowlevellock.h>
> >  #include <pthreaddef.h>
> >  #include <dl-sysdep.h>
> > +#endif
> 
> Why is this necessary?

linuxthreads ld.so needs to know the size of NPTL struct pthread.
But when nptl-struct-pthread.sym is being compiled, it of course does not
have all the nptl necessary sysdep dirs in -I options, it has linuxthreads
instead.
Alternative to the above would be to add dummy lowlevellock.h and
pthreaddef.h headers to linuxthreads/sysdeps/pthread (where that
dummy lowlevellock.h would typedef int lll_lock_t; and pthreadef.h
would be empty).

	Jakub


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