delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/10/13:11:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
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 <khan AT NanoTech DOT Wisc DOT EDU>
To: Noel L Yap <yap_noel AT jpmorgan DOT com>
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: <Pine.HPP.3.96.1000110121401.17518u-100000@hp2.xraylith.wisc.edu>
MIME-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019