This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold Symbol::should_add_dynsym_entry
- From: Cary Coutant <ccoutant at google dot com>
- To: Binutils <binutils at sourceware dot org>
- Date: Tue, 5 Feb 2013 16:55:49 -0800
- Subject: Re: gold Symbol::should_add_dynsym_entry
- References: <20130206001706.GP5023@bubble.grove.modra.org>
> Seems to me that the following code in should_add_dynsym_entry() is
> a duplicate of code setting is_defined_in_discarded_section_.
> Unless is_section_included() and is_section_folded() can return
> different results here than at Add_symbols time?
Yes, I think they can return different results here. GC and ICF both
run after the Add_symbols tasks, so the answers can change. The symbol
attribute is true when it's in a discarded COMDAT section, but will
not be true if it's in a section discarded by GC or folded by ICF.
-cary