http://sourceware.org/bugzilla/show_bug.cgi?id=12758
Summary: LTO doesn't work with --start-group and archive Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sources.redhat.com ReportedBy: hjl.to...@gmail.com CC: amo...@gmail.com Linux kernel build calls linker with -plugin /export/build/gnu/gcc-4.6/release/usr/gcc-4.6.1/bin/../libexec/gcc/x86 _64-unknown-linux-gnu/4.6.1/liblto_plugin.so -plugin-opt=/export/build/gnu/gcc-4 .6/release/usr/gcc-4.6.1/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.1/lto-w rapper -plugin-opt=-fresolution=/tmp/ccZ8Rces.res -flto=jobserver --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o vmlinux -L/export/ build/gnu/gcc-4.6/release/usr/gcc-4.6.1/bin/../lib/gcc/x86_64-unknown-linux-gnu/ 4.6.1 -L/export/build/gnu/gcc-4.6/release/usr/gcc-4.6.1/bin/../lib/gcc -L/export /build/gnu/gcc-4.6/release/usr/gcc-4.6.1/bin/../lib/gcc/x86_64-unknown-linux-gnu /4.6.1/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/export/build/gnu /gcc-4.6/release/usr/gcc-4.6.1/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.1/../ ../.. -m elf_x86_64 --build-id -T arch/x86/kernel/vmlinux.lds arch/x86/kernel/he ad_64.o arch/x86/kernel/head64.o arch/x86/kernel/head.o arch/x86/kernel/init_tas k.o init/built-in.o --start-group usr/built-in.o arch/x86/built-in.o kernel/buil t-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/bui lt-in.o block/built-in.o lib/lib.a arch/x86/lib/lib.a lib/built-in.o arch/x86/li b/built-in.o drivers/built-in.o sound/built-in.o firmware/built-in.o arch/x86/pc i/built-in.o arch/x86/oprofile/built-in.o arch/x86/power/built-in.o arch/x86/vid eo/built-in.o net/built-in.o --end-group But elf_link_add_archive_symbols has /* Doublecheck that we have not included this object already--it should be impossible, but there may be something wrong with the archive. */ if (element->archive_pass != 0) { bfd_set_error (bfd_error_bad_value); goto error_return; } which leads to rescan LTO failure on lib/lib.a. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils