This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Linking into objects using C++
- From: Andreas Schwab <schwab at suse dot de>
- To: Kövesdi György <kgy at deverto dot hu>
- Cc: binutils at sourceware dot org
- Date: Fri, 10 Aug 2007 21:06:39 +0200
- Subject: Re: Linking into objects using C++
- References: <200708102001.59764.kgy@deverto.hu>
Kövesdi György <kgy@deverto.hu> writes:
> Creating an archive does not help me because there are no external references
> to those objects, and therefore it would not be linked in.
$ ld --help | grep whole
--no-whole-archive Turn off --whole-archive
--whole-archive Include all objects from following archives
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."