Can ld combine multiple object files into one?
Mon Jan 10 10:14:00 GMT 2000
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.
Want to unsubscribe from this list?
Send a message to email@example.com
More information about the Cygwin