[all-commits] [llvm/llvm-project] ab58e4: [lld][WebAssembly] Add suppport for PIC + passive ...
Sam Clegg via All-commits
all-commits at lists.llvm.org
Fri Dec 4 17:34:12 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ab58e4cb5185cc2042f3e1c077c85430b83c28b5
https://github.com/llvm/llvm-project/commit/ab58e4cb5185cc2042f3e1c077c85430b83c28b5
Author: Sam Clegg <sbc at chromium.org>
Date: 2020-12-04 (Fri, 04 Dec 2020)
Changed paths:
M lld/test/lit.cfg.py
M lld/test/wasm/data-segments.ll
M lld/wasm/Driver.cpp
M lld/wasm/SyntheticSections.cpp
M lld/wasm/Writer.cpp
M llvm/include/llvm/BinaryFormat/Wasm.h
Log Message:
-----------
[lld][WebAssembly] Add suppport for PIC + passive data initialization
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`.
Differential Revision: https://reviews.llvm.org/D92620
More information about the All-commits
mailing list