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

Evangelos Foutras <evangelos at foutrelis dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |evangelos at foutrelis dot com

--- Comment #10 from Evangelos Foutras <evangelos at foutrelis dot com> ---
Is it possible to avoid calling dlclose() on the plugin handle? I'm asking
because the LLVM gold plugin (LLVMgold.so) will throw the following error when
loaded more than once:

  > CommandLine Error: Option 'asm-instrumentation' registered more than once!

libLLVM.so used to have the same problem, but it's worked around using NODELETE
(https://reviews.llvm.org/D40459). However, LLVMgold.so is considered a module
and not a shared library. As such, it's not linked with "-z nodelete".

Perhaps an fix on LLVM's side would be to specify nodelete for LLVMgold.so; I
have uploaded a tentative patch doing that here:
https://reviews.llvm.org/D50416

In any case, I thought I'd also ask here if it might make sense to remove
dlclose() from bfd's plugin loader.

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