http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53068
Pawel Sikora <pluto at agmk dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pluto at agmk dot net
--- Comment #7 from Pawel Sikora <pluto at agmk dot net> 2012-04-22 07:54:34
UTC ---
(In reply to comment #3)
> Wow - this will break a lot of big users - we are far from the only ones who
> find priorities unusable.
>
> BTAIM, it appears that our choice is to use an option (there is one? what?) to
> force 4.7 to continue to use ctors, or to use some other option (there is one?
> what?) to force 4.7 to process init_array in reverse order from what it does
> by
> default.
>
> Of these two, which do you recommend as a workaround? Are there any other
> choices?
you can use gold linker. it have nice options:
$ ld.gold --help|grep ctors
--ctors-in-init-array Use DT_INIT_ARRAY for all constructors (default)
--no-ctors-in-init-array Handle constructors as directed by compiler