This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
icf_safe_test in gold fails with gcc-4.0.3
- From: Sriraman Tallam <tmsriram at google dot com>
- To: binutils at sourceware dot org, Chris Demetriou <cgd at google dot com>, Ian Lance Taylor <iant at google dot com>
- Date: Tue, 29 Dec 2009 17:43:35 -0800
- Subject: icf_safe_test in gold fails with gcc-4.0.3
Hi,
With gcc-4.0.3, icf_safe_test fails.
Safe Identical Code Folding did not fold _ZN1AD1Ev and _ZN1AC1Ev
FAIL: icf_safe_test.sh
This is because gcc-4.0.3 puts constructors and destructors in
.gnu.linkonce.t sections whereas gcc-4.4, on which ICF was tested,
puts them in .text sections. I can modify ICF to also fold
.gnu.linkonce.t sections and that should solve the problem. Would this
be alright ?
Thanks,
-Sri.