[opensuse-factory] LLVMgold vs. liblto_plugin for ar
[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... Werner
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)
Leap 45.0 has the GCC liblto_plugin.so in /usr/lib/bfd-plugins.
OK.
I guess the LLVM one is needed to inspect LLVM "lto" archives and so is the GCC one for GCC lto archives.
Sounds sensible, thanks. Maybe this can be documented somewhere. Admittedly, I have no idea where to do that... Werner -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Richard Biener
-
Werner LEMBERG