[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in linker (ld)
From: |
Nick Clifton |
Subject: |
Re: bug in linker (ld) |
Date: |
01 Aug 2001 23:32:16 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Hi Jim,
> An attached tarball contains 4 small files that
> demonstrate the problem. When the "doit" script
> is run, it prints:
I have not actually tried to reproduce this bug, but I did notice that
you are using an old version of ld:
> GNU ld 2.9.5
The latest version is 2.11.2. I would suggest that you download this
version (or if you prefer, H.J.'s latest version) and try that.
> Also, a question: Is is proper/possible to use an
> executable as input to ld?
No. The executable has been fully resolved, so you cannot expect to
treat it as an iordinary object file.
> In particular, I want to
> use the --wrap option to override some system calls
> so that my own functions are called. Something like:
>
> $ld prog my_recv.o --wrap recv -o my_prog
Why not just link with the object files and libraries that were used
to make 'prog' instead ?
Cheers
Nick