[Bug other/54671] [4.7/4.8 Regression] gcc 4.7.2 -Wl,--no-ctors-in-init-array causes binutils test failure, works with 4.7.1

pluto at agmk dot net gcc-bugzilla@gcc.gnu.org
Tue Sep 25 19:23:00 GMT 2012


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

--- Comment #4 from Pawel Sikora <pluto at agmk dot net> 2012-09-25 19:23:15 UTC ---
(In reply to comment #2)
> I think this is a user bug.  If gcc is configured against binutils that support
> conversion of ctors into init_array, then it will assume it, obviously you
> can't use --no-ctors-in-init-array then, you'd need to configure gcc not to
> assume it.
> Why do you need to use that option (actually, I wonder why the linker has that
> option at all)?

e.g. i'd like to build an application for an old enterprise distro
(which doesn't support init/fini arrays) on my brand new distro.
-Wl,--no-ctors-in-init-array works perfectly fine in this case.



More information about the Gcc-bugs mailing list