This is the mail archive of the
mailing list for the binutils project.
Re: Is it possible to use a linker script to preserve unreferenced static C++ class instances defined in a static library?
- From: Erik Christiansen <dvalin at internode dot on dot net>
- To: binutils at sourceware dot org
- Date: Fri, 17 May 2013 21:52:29 +1000
- Subject: Re: Is it possible to use a linker script to preserve unreferenced static C++ class instances defined in a static library?
- References: <CAPJuS5c7cuJTJAkSn5hm1-fGqMN-k3rtdWJm557Ez=xkMKGsFg at mail dot gmail dot com>
- Reply-to: dvalin at internode dot on dot net
On 16.05.13 15:51, Bob Mowry wrote:
> Currently I'm using this linker script in an attempt to get the
> linker to keep all items in the .data segment:
> .data :
> But it seems to have no impact.
Is it certain that the input section names match ".data"?
Something like .data1 or .data.suchlike would need .data* (or .data?),
and .data.*, respectively. The '*' outside the inner braces is only
saying "any filename".
Hopefully that takes us a step closer to the cause.
I really didn't foresee the Internet. But then, neither did the computer
industry. Not that that tells us very much, of course - the computer
industry didn't even foresee that the century was going to end.
- Douglas Adams