[PATCH] D63833: [wasm-ld] Add __global_base symbol to mark the value of --global-base
Guanzhong Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 11:36:42 PDT 2019
quantum created this revision.
quantum added reviewers: tlively, aheejin, sbc100.
Herald added subscribers: llvm-commits, sunfish.
Herald added a project: LLVM.
This is needed for address sanitizer on Emscripten. As everything in
memory starts at the value passed to --global-base, everything before
that can be used as shadow memory.
This symbol is added so that the library for the ASan runtime can know
where the shadow memory ends and real memory begins.
This is split from D63742 <https://reviews.llvm.org/D63742>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D63833
Files:
lld/test/wasm/global-base.ll
lld/wasm/Driver.cpp
lld/wasm/Symbols.cpp
lld/wasm/Symbols.h
lld/wasm/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63833.206717.patch
Type: text/x-patch
Size: 5556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190626/f696226c/attachment.bin>
More information about the llvm-commits
mailing list