diff --git a/llvm/tools/objwriter/objwriter.cpp b/llvm/tools/objwriter/objwriter.cpp index d501c3ce48e637..6bf108ad26b93b 100644 --- a/llvm/tools/objwriter/objwriter.cpp +++ b/llvm/tools/objwriter/objwriter.cpp @@ -147,6 +147,7 @@ bool ObjectWriter::Init(llvm::StringRef ObjectFilePath, const char* tripleName) /*DWARFMustBeAtTheEnd*/ false); if (!Streamer) return error("no object streamer for target " + TripleName); + Streamer->InitSections(/* NoExecStack */ true); Assembler = &Streamer->getAssembler(); FrameOpened = false;