When we pass -Wl,--dynamic-list-cpp-typeinfo (or -Wl,--export-dynamic)
then the run time type information for C++ classes is exported
from the program ("cpu", "dis" etc.) to any dynamically shared
libraries. Therefore C++ type definitions are available and
consistent with what the plugin may use.
We can even produce a specific list if desired, by using -Wl,--dynamic-list
When we pass -Wl,--dynamic-list-cpp-typeinfo (or -Wl,--export-dynamic) then the run time type information for C++ classes is exported from the program ("cpu", "dis" etc.) to any dynamically shared libraries. Therefore C++ type definitions are available and consistent with what the plugin may use.
We can even produce a specific list if desired, by using -Wl,--dynamic-list
More information: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201784
Big thanks to David Chisnall (@davidchisnall) for helping to point this out.
Fixes: #70