https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52489
Bug 52489 depends on bug 51255, which changed state.
Bug 51255 Summary: Using -fwhole-program breaks code which puts values in
.ctors or .init_array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51255
What|Removed
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52489
Andrew Pinski changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52489
--- Comment #7 from Krisztian Kocsis
2012-03-05 13:50:25 UTC ---
Binutils 2.22
Pls check the attached files.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52489
Richard Guenther changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52489
--- Comment #5 from Krisztian Kocsis
2012-03-05 13:40:18 UTC ---
Ok, I can confirm that it work if plugins are disabled or
-fno-use-linker-plugin is used. When linker plugin is used gcc drops these
sections.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52489
--- Comment #4 from Krisztian Kocsis
2012-03-05 13:39:08 UTC ---
Created attachment 26833
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26833
Generated files with -fno-use-linker-plugin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52489
--- Comment #3 from Krisztian Kocsis
2012-03-05 13:35:38 UTC ---
Created attachment 26832
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26832
Generated files with -fuse-linker-plugin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52489
--- Comment #2 from Krisztian Kocsis
2012-03-05 12:46:47 UTC ---
It seems that it works with -fno-use-linker-plugin - strane :S
Now I will try to check some other things.
I think it is not a linker bug because if a save temp files the .s file do
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52489
Richard Guenther changed:
What|Removed |Added
CC||hubicka at gcc dot gnu.org
Dep