This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]