From 94d3b16101599f52e1233357e719eff1dc0159f3 Mon Sep 17 00:00:00 2001 From: Nicholas Wilson Date: Mon, 5 Mar 2018 12:33:58 +0000 Subject: [PATCH] [WebAssembly] Reorder reloc sections to come after symtab This matches LLVM change D43940. Differential Revision: https://reviews.llvm.org/D43946 llvm-svn: 326693 --- lld/wasm/Writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index ce5a92c..550372a 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(); -- 2.7.4