This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Group static constructors and destructors in specific subsections
- From: Cary Coutant <ccoutant at google dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Richard Biener <rguenther at suse dot de>, Ian Lance Taylor <iant at google dot com>, iains at gcc dot gnu dot org, tglek at mozilla dot com
- Date: Mon, 15 Jul 2013 10:34:14 -0700
- Subject: Re: Group static constructors and destructors in specific subsections
- References: <20101014203817 dot GB15487 at kam dot mff dot cuni dot cz> <AANLkTikm11+0tAMb=58MXWP8_DHLNXfBgGnZZ2o2QCw6 at mail dot gmail dot com>
>> I am not sure how to update gold - I basically copied existing code in binutils
>> for .text.unlikely group in GNU LD linker script, but I think gold is doing
>> independent decisions somewhere.
Ian committed this patch a few months ago, after a lengthy discussion
around a patch originally submitted by Sriraman:
http://sourceware.org/ml/binutils/2012-12/msg00227.html
That should have gold handling .text.startup, .text.exit, and
.text.hot the same as Gnu ld.
-cary