[PATCH] D65980: [WebAssembly][lld] control __data_end export with config->shared

Guanzhong Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 8 15:39:20 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL368361: [WebAssembly][lld] control __data_end export with config->shared (authored by quantum, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D65980?vs=214249&id=214250#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65980/new/

https://reviews.llvm.org/D65980

Files:
  lld/trunk/wasm/Driver.cpp


Index: lld/trunk/wasm/Driver.cpp
===================================================================
--- lld/trunk/wasm/Driver.cpp
+++ lld/trunk/wasm/Driver.cpp
@@ -527,8 +527,10 @@
   if (!config->relocatable)
     WasmSym::dsoHandle = symtab->addOptionalDataSymbol("__dso_handle");
 
-  if (!config->isPic) {
+  if (!config->shared)
     WasmSym::dataEnd = symtab->addOptionalDataSymbol("__data_end");
+
+  if (!config->isPic) {
     WasmSym::globalBase = symtab->addOptionalDataSymbol("__global_base");
     WasmSym::heapBase = symtab->addOptionalDataSymbol("__heap_base");
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65980.214250.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190808/3eddb434/attachment.bin>


More information about the llvm-commits mailing list