marekjm / viuavm

Parallel virtual machine designed to reliably run massively concurrent programs
https://viuavm.org/
GNU General Public License v3.0
71 stars 11 forks source link

Pass -Wl,--dynamic-list-cpp-typeinfo to linker #85

Closed saper closed 9 years ago

saper commented 9 years ago

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

marekjm commented 9 years ago

Merged. Thanks!

I will remove the custom typechecking code from module, and then - if everythign is still good - close the #70 .