This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Binutils linker bug?
- To: Mark Kettenis <kettenis at wins dot uva dot nl>
- Subject: Re: Binutils linker bug?
- From: Kars de Jong <jongk at cs dot utwente dot nl>
- Date: Tue, 9 Nov 1999 00:10:21 +0100
- Cc: bug-utils at gnu dot org, binutils at sourceware dot cygnus dot com
- References: <19991108141048.A8645@rincewind.discworld.org> <m3ogd4d6et.fsf@delius.kettenis.local>
On Mon, Nov 08, 1999 at 10:23:22PM +0100, Mark Kettenis wrote:
> > But I couldn't get the testcase to pull in pthread symbols without adding the
> > pthread_self() call to the main program.
>
> I think you get the same result if you use write() instead of
> pthread_self() in your main program. libpthread overrides several
> system calls that can block for a long time to make them cancellation
> points. In this context the fact that `write' is weak in libc.so but
> an ordinary symbol in libpthread.so.
Well, I tested this (using write()) and that got the testcase I really meant
to send :) No calls to pthread specific functions and still a libpthread
version requirement in the main program.
Wether this is to be bugfixed by glibc or binutils, or both,
I leave to you :)
Kars.
--
------------------------------------------------------------------------------
Kars de Jong Signaalkamp rules the waves! Turrican@Discworld
--------======]**-----| jongk@cs.utwente.nl |-----**[======---------