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