This is the mail archive of the gcc-bugs@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]

[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


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.


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