andrewng added a comment. I think the PLT writing should handle the padding itself. It certainly feels more correct. It looks though https://reviews.llvm.org/D44775 is heading in that direction too. https://reviews.llvm.org/D44682