HomePhabricator

[wasm-ld] Add __global_base symbol to mark the value of --global-base

Authored by quantum on Jun 26 2019, 1:12 PM.

Description

[wasm-ld] Add __global_base symbol to mark the value of --global-base

Summary:
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.

Reviewers: tlively, aheejin, sbc100

Subscribers: sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63833

llvm-svn: 364467

Details

Committed
quantumJun 26 2019, 1:12 PM
Differential Revision
D63833: [wasm-ld] Add __global_base symbol to mark the value of --global-base
Parents
rG8ac899c6003c: Make nrvo-string test more robust.
Branches
Unknown
Tags
Unknown