Add the relevant magic bits to allow "-mllvm=-load=plugin.so" etc.
This is now using export_executable_symbols_for_plugins, so symbols are only exported if plugins are enabled.
Differential D75879
[lld]Enabling loading LLVM pass plugins efriedma on Mar 9 2020, 3:38 PM. Authored by
Details
Add the relevant magic bits to allow "-mllvm=-load=plugin.so" etc. This is now using export_executable_symbols_for_plugins, so symbols are only exported if plugins are enabled.
Diff Detail
Event Timeline
Comment Actions Posted https://reviews.llvm.org/D76527 with new CMake function export_executable_symbols_for_plugins , which only exports symbols if LLVM_ENABLE_PLUGINS is on. |
Does this CMake function enable -rdynamic (the same as -Wl,--export-dynamic)? It can make the executable much larger because all defined symbols in .symtab will end up in .dynsym and consume a lot of .dynstr space...