Index: lib/MC/MCParser/WasmAsmParser.cpp =================================================================== --- lib/MC/MCParser/WasmAsmParser.cpp +++ lib/MC/MCParser/WasmAsmParser.cpp @@ -120,6 +120,9 @@ .StartsWith(".text", SectionKind::getText()) .StartsWith(".custom_section", SectionKind::getMetadata()) .StartsWith(".bss", SectionKind::getBSS()) + // See use of .init_array in WasmObjectWriter and + // TargetLoweringObjectFileWasm + .StartsWith(".init_array", SectionKind::getData()) .Default(Optional()); if (!Kind.hasValue()) return Parser->Error(Lexer->getLoc(), "unknown section kind: " + Name);