Would the K/N team accept contributions to fix running against a dynamically-linked LLVM? I'm attempting to package kotlin-native for nixpkgs, and they have a particular LLVM build that's difficult to coerce into creating a static library.
The main change is a complete rework of libclangstubs' signal chaining mechanism on Linux, basically parsing the ELF dynamic section to locate the correct symbol to redirect in libLLVM. Right now it crashes because we iterate through all addresses in the GOT for libLLVM with no bounds check, when the actual symbol we need to patch lives in libclang on a dynamically-linked .so.