This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: another --gc-sections question
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Adam Megacz <adam at megacz dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 7 Nov 2002 22:11:28 +1030
- Subject: Re: another --gc-sections question
- References: <86y98632t9.fsf@nowhere.com>
On Wed, Nov 06, 2002 at 11:39:46AM -0800, Adam Megacz wrote:
>
> Does section-gc happen before or after the merging of duplicate
> sections (like .ctor)?
Before.
> In other words, if I have two sections named foo, and one contains a
> symbol which is referenced in main(), will both sections wind up in
> the final binary (merged together), or will only one of them?
Just one, assuming the second section is not referenced.
--
Alan Modra
IBM OzLabs - Linux Technology Centre