[PATCH] D92620: [lld][WebAssembly] Add suppport for PIC + passive data initialization
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 3 16:55:55 PST 2020
sbc100 created this revision.
Herald added subscribers: wingo, ecnelises, sunfish, jgravelle-google, dschuff.
sbc100 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.
This change improves our support for shared memory to include
PIC executables (and shared libraries).
To handle this case the linker-generated `__wasm_init_memory`
function (that only exists in shared memory builds) must be
capable of loading memory segements at non-const offsets based
on the runtime value of `__memory_base`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D92620
Files:
lld/wasm/Writer.cpp
llvm/include/llvm/BinaryFormat/Wasm.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92620.309408.patch
Type: text/x-patch
Size: 4485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201204/6e243f69/attachment.bin>
More information about the llvm-commits
mailing list