ld sometimes hangs
Nick Clifton
nickc@redhat.com
Thu Feb 22 15:24:00 GMT 2001
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
More information about the Binutils
mailing list