[Bug target/46770] Replace .ctors/.dtors with .init_array/.fini_array on targets supporting them
mark at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Sat Dec 11 23:30:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46770
--- Comment #34 from Mark Mitchell <mark at codesourcery dot com> 2010-12-11 23:30:19 UTC ---
On 12/11/2010 3:28 PM, hjl.tools at gmail dot com wrote:
> 1. How do you find out what priority "foo" constructor has?
If you're looking at source code, read the source. If you're looking at
object code, look at what section the constructor is in; the numerical
value of .ctor.NNNNN indicates the priority.
> 2. How do you run your constructor before "foo"?
Given it a higher priority.
More information about the Gcc-bugs
mailing list