I've had problem with a program using LLVM that tried to dynamic_cast
objects created in the JIT execution engine, from the native part of the
program (for the curious, the program is PinaVM
I've narrowed down the issue to the linkage of weak_odr and linkonce_odr
symbols, used for the vtables, and that _must_ be unique for
dynamic_cast to work.
Attached are two patches: the first adds a (failing) testcase, the
second fixes the issue.
I'm not familiar with patch submission on this list, let me know if
there's a better way to submit patches.