http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284
--- Comment #1 from Andi Kleen <andi-gcc at firstfloor dot org> 2011-06-04 22:13:34 UTC --- Some investigation: This depends heavily on the command line used. A simple test with a hello world works. On my kernel build when I strip the lto link command line down I get the error with gcc47 -fdump-cgraph-ipa -nostdlib -fuse-linker-plugin -flto=jobserver -fwhole-program -Wl,-m,elf_x86_64 -Wl,--build-id -o .tmp_vmlinux1 -Wl,-T,arch/x86/kernel/vmlinux.lds arch/x86/kernel/head_64.o arch/x86/kernel/head_64.o and not with (last file deleted) gcc47 -fdump-cgraph-ipa -nostdlib -fuse-linker-plugin -flto=jobserver -fwhole-program -Wl,-m,elf_x86_64 -Wl,--build-id -o .tmp_vmlinux1 -Wl,-T,arch/x86/kernel/vmlinux.lds arch/x86/kernel/head_64.o