This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: Can ld combine multiple object files into one?


On Mon, 10 Jan 2000, Noel L Yap wrote:

> The Solaris ld command has an option to combine multiple object files (ie .o
> files) into one.  Does the gnu ld have a similar option?  The reason we want to
> do this is to hide certain information -- combining multiple object files using
> ar will not do.
> 

See ld documentation for relocatable link -- it's the same '-r' option for
C code, but you need to use '-Ur' for C++ code so that global constructors
and destructors are handled properly.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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