This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld sometimes hangs
- To: Sebastian Klemke <packet at convergence dot de>
- Subject: Re: ld sometimes hangs
- From: Nick Clifton <nickc at redhat dot com>
- Date: 22 Feb 2001 15:24:05 -0800
- CC: binutils at sources dot redhat dot com
- References: <3A940C81.BD2057C5@convergence.de><p0snl7bvm0.fsf@elmo.cygnus.com> <3A9593FD.4B9D8B9A@convergence.de>
Hi Sebastian,
> > > Using my own compiled ld on linux (kernel 2.4.1 and libc 2.2.1) I have
> > > the problem that ld sometimes just eats up all cputime and doesn't seem
> > > to be doing anything. I've tried versions 2.10.1 and 2.10.1.0.2 of ld,
> > > they both have the same problem, just for different packages. findutils
> > > wont link using ld 2.10.1 and libtool 1.3.5 wont link using ld
> > > 2.10.1.0.2.
> >
> > Is this an x86 based Linux ?
>
> Yes, but I already told you that in my last mail... *g*
>
> > Can you provide a small test case that reproduces the problem ?
>
> I found something:
>
> >>>
> #ifdef __cplusplus
> extern "C"
> #endif
> char dlopen();
>
> int main() {
> dlopen();
> ; return 0; }
> <<<
>
> this is taken from the libtool 1.3.5 configure script, and results in
> the behaviour I described above, when compiled with "gcc -ldl -o test
> test.c"
>
> As its only the configure script, I know how to work around it now, but
> I can't grasp why it's happening, and it happens for other packages,
> too.
Unfortunately I could not reproduce this in my own test environment,
so I am forwarding your mail to the binutils list in the hopes that
someone else can make it happen.
> Am I just too stupid to compile binutils/gcc and so on?
Nah, it must be a linker bug somewhere. Just a very strange one.
Cheers
Nick