https://sourceware.org/bugzilla/show_bug.cgi?id=21702

--- Comment #3 from Martin Schulze <spam.martin.schulze at gmx dot de> ---
Hi Nick,
thanks for your reply.

Yes, Arch compiles with --enable-plugins. Otherwise the linking while using the
command line (ar rcs ...) wouldn't work too.

I already tried to add the --plugin option to no avail.
Furthermore, Arch's gcc package defaults to creating the symlink
/usr/lib/bfd-plugins/liblto_plugin.so ->
/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/liblto_plugin.so so it should also be
found via this method (as it seems to be with the `ar rcs ...` call).

I think the problem is that the plugin is not loaded in MRI mode where it
should be.

This is illustrated nicely by the fact that following call works as expected
(without any plugin option):

ar rcs libfunc.non-mri.a func.o

While these two both give an error:

ar -M < mri_script
ar: func.o: plugin needed to handle lto object

ar --plugin=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/liblto_plugin.so  -M <
mri_script
ar: func.o: plugin needed to handle lto object

-- 
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

Reply via email to