aengelke wrote: Shouldn't JITLink automatically generate a PLT/GOT in these cases? Using the large code model for this is more of a legacy thing from what I understood. https://github.com/llvm/llvm-project/pull/201286