This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld sometimes hangs
- To: Nick Clifton <nickc at redhat dot com>
- Subject: Re: ld sometimes hangs
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Thu, 22 Feb 2001 15:47:05 -0800
- Cc: Sebastian Klemke <packet at convergence dot de>,binutils at sources dot redhat dot com
- References: <3A940C81.BD2057C5@convergence.de> <p0snl7bvm0.fsf@elmo.cygnus.com> <3A9593FD.4B9D8B9A@convergence.de> <p0n1be5mju.fsf@elmo.cygnus.com>
On Thu, Feb 22, 2001 at 03:24:05PM -0800, Nick Clifton wrote:
> 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.
>
I never saw this myself.
--
H.J. Lu (hjl@valinux.com)