[Bug lto/84995] Documentation gcc-ar and gcc-ranlib vs {libdir}/bfd-plugins

dilyan.palauzov at aegee dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 15 10:07:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84995

--- Comment #15 from Дилян Палаузов <dilyan.palauzov at aegee dot org> ---
Why isn’t liblto_plugin.so tweaked to claim only the GCC LTO files, it can
handle?  E.g. liblto_plugin.so from GCC7 does not claim files for GCC 8 LTO?

I do not get the conclusion here:
 * liblto_plugin.so from $libdir/bfd-plugins is only magially called by
ar/nm/ranlib and there the version number does not matter;
 * in case where liblto_plugin.so is not called by ar/nm/ranlib the version
number matters, but no auto-loading happens, so installing it under
$libdir/bfd-plugins is irrelevant

So when will it be problematic to do auto loading by ar/nm/ranlib and when can
installing the plugin under $libdir/bfd-plugins create problems?


More information about the Gcc-bugs mailing list