[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:38:31 PDT 2019
quantum updated this revision to Diff 214249.
quantum added a comment.
Remove the curlies.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65980/new/
https://reviews.llvm.org/D65980
Files:
lld/wasm/Driver.cpp
Index: lld/wasm/Driver.cpp
===================================================================
--- lld/wasm/Driver.cpp
+++ lld/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.214249.patch
Type: text/x-patch
Size: 564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190808/076167ff/attachment.bin>
More information about the llvm-commits
mailing list