This is the mail archive of the
mailing list for the GCC project.
Re: Group static constructors and destructors in specific subsections
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, 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 20:05:30 +0200
- 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> <CAHACq4oP_zqSE2dNNfXdui-YLoXPsQNE+BtA+cf_BQgese3AQg 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:
> That should have gold handling .text.startup, .text.exit, and
> .text.hot the same as Gnu ld.
Thanks a lot! It seems that this versio nof gold did not hit our distro yet.
I will update my local installation.
The next thing is how to tell GNU LD/Gold the relative order of functions.
I.e. my_function_section.order.125 or something like that?