On Mon, Sep 26, 2016 at 04:04:05PM -0700, Rafael EspĂndola via llvm-commits wrote: > Do you know why it uses -r instead of -shared? At least amd64 is pretty aggressive about not allowing text relocations. Kernel modules are not PIC, they are just explicitly relocated on startup. Joerg