joerg added a comment. It should be kept in mind that secure PLT is desirable for certain cases with non-position independent code as well. Even in static binaries it can be desirable... But that is for a follow-up patch. Repository: rL LLVM https://reviews.llvm.org/D42112