Index: lib/CodeGen/AsmPrinter/AsmPrinter.cpp =================================================================== --- lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1337,6 +1337,7 @@ const DataLayout &DL = M.getDataLayout(); for (const auto &Stub : Stubs) { + EmitAlignment(Log2_32(DL.getPointerSize())); OutStreamer->EmitLabel(Stub.first); OutStreamer->EmitSymbolValue(Stub.second.getPointer(), DL.getPointerSize());