Index: lld/trunk/wasm/Writer.cpp =================================================================== --- lld/trunk/wasm/Writer.cpp +++ lld/trunk/wasm/Writer.cpp @@ -631,8 +631,8 @@ // Custom sections if (Config->Relocatable) { - createRelocSections(); createLinkingSection(); + createRelocSections(); } if (!Config->StripDebug && !Config->StripAll) createNameSection();