[PATCH] D43946: [WebAssembly] Reorder reloc sections to come after symtab

Nicholas Wilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 1 08:38:57 PST 2018


ncw created this revision.
ncw added a reviewer: sbc100.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff, jfb.

This matches LLVM change https://reviews.llvm.org/D43940, and must land before or with that change.

No tests require updating :)


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43946

Files:
  wasm/Writer.cpp


Index: wasm/Writer.cpp
===================================================================
--- wasm/Writer.cpp
+++ wasm/Writer.cpp
@@ -632,12 +632,12 @@
   createDataSection();
 
   // Custom sections
-  if (Config->Relocatable) {
-    createRelocSections();
+  if (Config->Relocatable)
     createLinkingSection();
-  }
   if (!Config->StripDebug && !Config->StripAll)
     createNameSection();
+  if (Config->Relocatable)
+    createRelocSections();
 
   for (OutputSection *S : OutputSections) {
     S->setOffset(FileSize);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43946.136533.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180301/7b3d48db/attachment.bin>


More information about the llvm-commits mailing list