llvm-project/lld/wasm
Guanzhong Chen e15dc95466 [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
2019-06-26 20:12:33 +00:00
..
CMakeLists.txt [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
Config.h [WebAssembly] Don't export __data_end and __heap_base by default. 2019-05-31 22:51:59 +00:00
Driver.cpp [wasm-ld] Add __global_base symbol to mark the value of --global-base 2019-06-26 20:12:33 +00:00
InputChunks.cpp [WebAssembly] Fix list of relocations with addends in lld 2019-06-26 00:52:42 +00:00
InputChunks.h [WebAssembly] Fix for discarded init functions 2019-06-07 06:00:46 +00:00
InputEvent.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InputFiles.cpp [WebAssembly] Fix accidental omission from rLLD364367 2019-06-26 01:26:53 +00:00
InputFiles.h [WebAssembly] Handle object parsing more like the ELF backend 2019-06-05 17:50:45 +00:00
InputGlobal.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LTO.cpp [WebAssebmly] Add support for --wrap 2019-05-24 14:14:25 +00:00
LTO.h [WebAssembly] Support imports from custom module names 2019-02-01 02:29:57 +00:00
MarkLive.cpp [WebAssembly] Fix for discarded init functions 2019-06-07 06:00:46 +00:00
MarkLive.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Options.td [WebAssebmly] Add support for --wrap 2019-05-24 14:14:25 +00:00
OutputSections.cpp [WebAssembly] make wasm-ld --verbose show data section startVA and name 2019-06-04 21:13:41 +00:00
OutputSections.h [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
OutputSegment.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Relocations.cpp [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
Relocations.h [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
SymbolTable.cpp [WebAssembly] Handle object parsing more like the ELF backend 2019-06-05 17:50:45 +00:00
SymbolTable.h [WebAssembly] Don't export __data_end and __heap_base by default. 2019-05-31 22:51:59 +00:00
Symbols.cpp [wasm-ld] Add __global_base symbol to mark the value of --global-base 2019-06-26 20:12:33 +00:00
Symbols.h [wasm-ld] Add __global_base symbol to mark the value of --global-base 2019-06-26 20:12:33 +00:00
SyntheticSections.cpp [WebAssembly] Seal imports section before counting imports 2019-05-23 09:41:03 +00:00
SyntheticSections.h [WebAssembly] Add support for -emit-relocs 2019-05-24 13:28:27 +00:00
Writer.cpp [wasm-ld] Add __global_base symbol to mark the value of --global-base 2019-06-26 20:12:33 +00:00
Writer.h [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
WriterUtils.cpp [wasm] Simplify. NFC 2019-04-18 13:33:29 +00:00
WriterUtils.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00