#include <unistd.h>
#include <ucontext.h>
+#include <llvm/Support/TargetSelect.h>
+
static void handle_sigsegv(int signal, siginfo_t *info, void *_context)
{
(void)(signal); // it's unused, stfu gcc
__attribute__((constructor))
static void setup_signals()
{
+ fprintf(stderr, "Set up LLVM\n");
+ llvm::InitializeAllTargets();
+ llvm::InitializeAllTargetMCs();
+ llvm::InitializeAllDisassemblers();
+
fprintf(stderr, "Set up signals\n");
sigset_t mask;
sigemptyset(&mask);