http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47891
Dmitry Gorbachev <d.g.gorbachev at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |d.g.gorbachev at gmail dot | |com --- Comment #3 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2011-02-25 04:01:04 UTC --- GCC 4.6.0 also generates a correct executable with `-fno-use-linker-plugin' option. It's a linker bug. You can try Hongjiu Lu's linker from lto-mixed branch: <http://git.kernel.org/?p=devel/binutils/hjl/x86.git;a=summary>.