diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 5bce70cb2a..288e110cf4 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -274,6 +274,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) { TargetAsmBackend *TAB = TheTarget->createAsmBackend(Opts.Triple); Str.reset(TheTarget->createObjectStreamer(Opts.Triple, Ctx, *TAB, *Out, CE, Opts.RelaxAll)); + Str.get()->InitSections(); } OwningPtr Parser(createMCAsmParser(*TheTarget, SrcMgr, Ctx,