This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: Can collect2 just generate the c file?


Perry Smith <pedz@easesoftware.net> writes:

> I think you misunderstood my question.
> 
> collect2 runs through the list of files to link and collects the
> constructors and destructors.  It then makes a c file of those items,
> compiles it, then calls ld again with the original list of objects
> plus the new object.  I'd like to stop before the second call to ld
> is made.  (I'm looking at the source now and I don't see that option).

My apologies, I did indeed misunderstand the question.

You're right, there is no option to cause collect2 to construct a C
file and not continue with the link.

Ian


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