[llvm-dev] Generating completely position agnostic code

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Mon Jul 1 16:25:27 PDT 2019


On Sun, Jun 30, 2019 at 09:07:21PM -0700, Hayden Livingston via llvm-dev wrote:
> I'm on a mission to generate code that can be loaded from disk without
> any modifications. This means no relocations can occur.

Why? Implementing self relocation is not that difficult really. It's
also quite difficult to avoid unless you can make sure that no pointer
variables are statically initialized. That means no arrays of strings,
no vtables etc.

Joerg


More information about the llvm-dev mailing list