This patch fixes the following missing symbols when linking JITLink in a shared library:
$ llvm-objdump -t libMyShared.so | grep _ZTVN4llvm7jitlink 0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink25InProcessEHFrameRegistrarE 0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink16EHFrameRegistrarE 0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink14JITLinkContextE 0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink22InProcessMemoryManagerE 0000000000000000 *UND* 0000000000000000 _ZTVN4llvm7jitlink20JITLinkMemoryManagerE
These symbols exist in the static lib, e.g.:
$ llvm-objdump -t lib/libLLVMJITLink.a | grep _ZTVN4llvm7jitlink25InProcessEHFrameRegistrarE 0000000000000038 g O .data.rel.ro 0000000000000038 _ZTVN4llvm7jitlink25InProcessEHFrameRegistrarE