objdump -h lib/lib.a | sed -ne '/___ksymtab/{s/.*+/EXTERN(/;s/ .*/)/;p}' >lib/.lib-ksyms.o.lds; rm -f lib/.lib_exports.o; ar rcsD lib/.lib_exports.o; ld -m elf_x86_64 -r -o lib/lib-ksyms.o -T lib/.lib-ksyms.o.lds lib/.lib_exports.o; rm lib/.lib_exports.o lib/.lib-ksyms.o.lds ld: internal error in target, at /home/gentoo/tmp/portage/sys-devel/binutils-2.27/work/binutils-2.27/gold/parameters.h:105 make[1]: *** [scripts/Makefile.build:498: lib/lib-ksyms.o] Error 1 rlated to this commit https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7f2084fa55e6cb61f61b4224d4a8bafaeee55f9f Please backport https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c13b08dbbcf752480a7621aa1f89bc5440c74c25 or look at https://bugzilla.kernel.org/show_bug.cgi?id=177741
(In reply to Steffen Hau from comment #0) > objdump -h lib/lib.a | sed -ne '/___ksymtab/{s/.*+/EXTERN(/;s/ .*/)/;p}' > >lib/.lib-ksyms.o.lds; rm -f lib/.lib_exports.o; ar rcsD lib/.lib_exports.o; > ld -m elf_x86_64 -r -o lib/lib-ksyms.o -T lib/.lib-ksyms.o.lds > lib/.lib_exports.o; rm lib/.lib_exports.o lib/.lib-ksyms.o.lds > ld: internal error in target, at > /home/gentoo/tmp/portage/sys-devel/binutils-2.27/work/binutils-2.27/gold/ > parameters.h:105 > make[1]: *** [scripts/Makefile.build:498: lib/lib-ksyms.o] Error 1 > > rlated to this commit > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/ > ?id=7f2084fa55e6cb61f61b4224d4a8bafaeee55f9f > > Please backport > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git; > h=c13b08dbbcf752480a7621aa1f89bc5440c74c25 or look at > https://bugzilla.kernel.org/show_bug.cgi?id=177741 The links make it clear but this problem is only with the gold linker and not with ld.bfd so the bug title could be made more specific. Don't know how to do that ...
*** Bug 602808 has been marked as a duplicate of this bug. ***
*** Bug 602834 has been marked as a duplicate of this bug. ***
Tested with backported patch from https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blobdiff;f=gold/gold.cc;h=7b3414f5f918f30f8357b23d3693b260a85bc40a;hp=123d79bc17d65a44076896a3580ff3d3053b7d37;hb=c13b08dbbcf752480a7621aa1f89bc5440c74c25;hpb=d0de53e251ce60057d91536a4c71740b047be040 Works just fine.
gentoo-sources-4.9.1 still not building with gold with the same error: EXPORTS lib/lib-ksyms.o ld: internal error in target, at /tmp/portage/sys-devel/binutils-2.27/work/binutils-2.27/gold/parameters.h:105 make[1]: *** [scripts/Makefile.build:498: lib/lib-ksyms.o] Error 1
(In reply to Rodrigo Saboya from comment #4) > Tested with backported patch from > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blobdiff;f=gold/ > gold.cc;h=7b3414f5f918f30f8357b23d3693b260a85bc40a; > hp=123d79bc17d65a44076896a3580ff3d3053b7d37; > hb=c13b08dbbcf752480a7621aa1f89bc5440c74c25; > hpb=d0de53e251ce60057d91536a4c71740b047be040 > > Works just fine. Confirmed. It just works with sys-devel/binutils-2.27
All versions <2.28.1 are now masked.