This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Group static constructors and destructors in specific subsections


> >> 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.

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?

Honza
> 
> -cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]