bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/21702] ar cannot handle (slim) LTO object files when in MR


From: spam.martin.schulze at gmx dot de
Subject: [Bug binutils/21702] ar cannot handle (slim) LTO object files when in MRI script mode
Date: Tue, 01 Aug 2017 10:00:46 +0000

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]