how to invoke ld without gcc

Dave Korn dk@artimi.com
Thu May 27 10:37:00 GMT 2004


> -----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....



More information about the Binutils mailing list