[llvm-dev] Generating completely position agnostic code

Hayden Livingston via llvm-dev llvm-dev at lists.llvm.org
Sun Jun 30 21:07:21 PDT 2019

I'm on a mission to generate code that can be loaded from disk without
any modifications. This means no relocations can occur.

Trying to see if this can be done for C++ code that uses STL but has
no global variables, and a single function, but of course Clang will
generate more functions for STL code.

I want to provide an array of function pointers so that for all
interactions STL needs to do with LIBC that I'm able to just provide
it via indirect calls.

Has anyone had success with such a thing in LLVM?

More information about the llvm-dev mailing list