[PATCH] D69600: [WebAssembly][lld] Fix for static linking of PIC code
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 19:36:16 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbaff8ec2e1d8: [WebAssembly][lld] Fix for static linking of PIC code (authored by sbc100).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69600/new/
https://reviews.llvm.org/D69600
Files:
lld/test/wasm/pic-static.ll
lld/wasm/Writer.cpp
Index: lld/wasm/Writer.cpp
===================================================================
--- lld/wasm/Writer.cpp
+++ lld/wasm/Writer.cpp
@@ -226,8 +226,6 @@
if (WasmSym::globalBase)
WasmSym::globalBase->setVirtualAddress(memoryPtr);
- if (WasmSym::definedMemoryBase)
- WasmSym::definedMemoryBase->setVirtualAddress(memoryPtr);
uint32_t dataStart = memoryPtr;
Index: lld/test/wasm/pic-static.ll
===================================================================
--- lld/test/wasm/pic-static.ll
+++ lld/test/wasm/pic-static.ll
@@ -118,4 +118,4 @@
; CHECK-NEXT: Mutable: false
; CHECK-NEXT: InitExpr:
; CHECK-NEXT: Opcode: I32_CONST
-; CHECK-NEXT: Value: 1024
+; CHECK-NEXT: Value: 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69600.227019.patch
Type: text/x-patch
Size: 795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191030/0570be54/attachment.bin>
More information about the llvm-commits
mailing list