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: Ian Lance Taylor <iant at google dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: Cary Coutant <ccoutant at google dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Richard Biener <rguenther at suse dot de>, iains at gcc dot gnu dot org, tglek at mozilla dot com
- Date: Mon, 15 Jul 2013 11:08:50 -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> <CAHACq4oP_zqSE2dNNfXdui-YLoXPsQNE+BtA+cf_BQgese3AQg at mail dot gmail dot com> <20130715180530 dot GA1985 at kam dot mff dot cuni dot cz>
On Mon, Jul 15, 2013 at 11:05 AM, Jan Hubicka <hubicka@ucw.cz> wrote:
> 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?
Gold has a --section-ordering-file option that lets you specify the
order in which sections should appear in the executable. Sections not
listed there follow the default rules.
Ian