[Bug other/46770] Replace .ctors/.dtors with .init_array/.fini_array on targets supporting them

igodard at pacbell dot net gcc-bugzilla@gcc.gnu.org
Sun Apr 22 21:53:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46770

--- Comment #103 from Ivan Godard <igodard at pacbell dot net> 2012-04-22 21:52:40 UTC ---
I may be just displaying my ignorance, but my understanding is that order under
init_array is governed by order of pointers within the array itself, and where
the pointed-to sections are in the file is irrelevant. After all, a reason for
the switch was so Firefox could get the inits with fewer disk reads.

So even if I can rearrange the init_array.NNNN sections nothing will change,
because the order is set by the pointers and you have left me with no control
over that.

Not so?



More information about the Gcc-bugs mailing list