[lld] r326693 - [WebAssembly] Reorder reloc sections to come after symtab

Nicholas Wilson via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 5 04:33:58 PST 2018


Author: ncw
Date: Mon Mar  5 04:33:58 2018
New Revision: 326693

URL: http://llvm.org/viewvc/llvm-project?rev=326693&view=rev
Log:
[WebAssembly] Reorder reloc sections to come after symtab

This matches LLVM change D43940.

Differential Revision: https://reviews.llvm.org/D43946

Modified:
    lld/trunk/wasm/Writer.cpp

Modified: lld/trunk/wasm/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Writer.cpp?rev=326693&r1=326692&r2=326693&view=diff
==============================================================================
--- lld/trunk/wasm/Writer.cpp (original)
+++ lld/trunk/wasm/Writer.cpp Mon Mar  5 04:33:58 2018
@@ -631,8 +631,8 @@ void Writer::createSections() {
 
   // Custom sections
   if (Config->Relocatable) {
-    createRelocSections();
     createLinkingSection();
+    createRelocSections();
   }
   if (!Config->StripDebug && !Config->StripAll)
     createNameSection();




More information about the llvm-commits mailing list