Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: hp2.xraylith.wisc.edu: khan owned process doing -bs Date: Mon, 10 Jan 2000 12:14:12 -0600 (CST) From: Mumit Khan To: Noel L Yap cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Can ld combine multiple object files into one? In-Reply-To: <85256862.00576828.00@nyc-ntgw-n01.ny.jpmorgan.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 AT sourceware DOT cygnus DOT com