This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: how to invoke ld without gcc
- From: "Dave Korn" <dk at artimi dot com>
- To: "'Nick Clifton'" <nickc at redhat dot com>,"'K. Ahmed Feroz'" <feroz at acmet dot com>
- Cc: <binutils at sources dot redhat dot com>,<saurabh at acmet dot com>,<monika at acmet dot com>
- Date: Thu, 27 May 2004 10:33:06 +0100
- Subject: RE: how to invoke ld without gcc
> -----Original Message-----
> From: binutils-owner On Behalf Of Nick Clifton
> Sent: 27 May 2004 09:10
> Note - for some targets gcc will invoke a program called "collect2"
> instead of "ld". This is a pre-processor program which is
> designed to
> help with the handling of constructors and destructors in C++ object
> files. In most (non C++) cases however you can just
> substitute "ld" for
> "collect2" and obtain the same behaviour.
>
> Cheers
> Nick
If you want to be certain about it, you just iterate: add "-v" to the
collect2 command line to see the exact invocation of ld.
cheers,
DaveK
--
Can't think of a witty .sigline today....