This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: another --gc-sections question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]