Emit fully relocatable, position independent code

llc

  • Compiles LLVM Intermediate Representation or bitcode to target-specific assembly language.
    More information: <https://www.llvm.org/docs/CommandGuide/llc.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

llc -relocation-model=pic {{path/to/input.ll}}

click the source code to copy install llc on any operating system with command-not-found.com