On Sun, 16 Dec 2018, Werner LEMBERG wrote:
[I'm using leap 42.3, but I guess it's a generic question, so I'm writing to this list.]
Folks,
is there any documentation that explains the differences, strengths, advantages, etc., between the `LLVMgold.so' plugin for `ar' and `liblto_plugin.so' from gcc?
On leap 42.3, a link to the former is installed by default in `/usr/lib/bfd-plugins', while I have to create a link for the latter if I want to use it (using ar's `--plugin' option, or removing the link to `LLVMgold.so') – I guess this is still the case with Tumbleweed...
Reason for my question is a crash in `LLVMgold.so', see
https://bugzilla.opensuse.org/show_bug.cgi?id=1117239 https://sourceware.org/bugzilla/show_bug.cgi?id=23928
To circumvent the issue I wonder whether it makes sense to simply replace the plugin with gcc's version, but I can't find any background information whether this is sensible...
Leap 45.0 has the GCC liblto_plugin.so in /usr/lib/bfd-plugins. I guess the LLVM one is needed to inspect LLVM "lto" archives and so is the GCC one for GCC lto archives. Richard. -- Richard Biener <rguenther@suse.de> SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)