diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index ce5a92cb0bd0..550372aecde5 100644 --- a/lld/wasm/Writer.cpp +++ b/lld/wasm/Writer.cpp @@ -631,8 +631,8 @@ void Writer::createSections() { // Custom sections if (Config->Relocatable) { - createRelocSections(); createLinkingSection(); + createRelocSections(); } if (!Config->StripDebug && !Config->StripAll) createNameSection();