llvm-capstone/lld/wasm
Thomas Lively 067f005500 [lld][WebAssembly] Fix segfault in map file support
The code previously assumed that `getChunk` would return a non-null pointer for
every symbol, but in fact it only returns non-null pointers for DefinedFunction
and DefinedData symbols. This patch fixes the segfault by checking whether
`getChunk` returns a null for each symbol and skipping the mapping output for
any symbols for which it does.

Differential Revision: https://reviews.llvm.org/D88369
2021-02-09 14:42:43 -08:00
..
CMakeLists.txt [lld][WebAssembly] Add initial support for -Map/--print-map 2020-09-12 16:10:51 -07:00
Config.h [LTO][wasm][NewPM] Allow using new pass manager for wasm LTO 2020-12-01 12:22:40 -08:00
Driver.cpp [lld][WebAssembly] Allow --export of optional start/stop symbols 2021-02-09 13:14:52 -08:00
InputChunks.cpp [lld][WebAssembly] Add support for handling table symbols 2021-01-14 11:13:13 +01:00
InputChunks.h [WebAssembly][lld] Exclude COMDAT sections 2020-12-10 17:47:41 -08:00
InputEvent.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
InputFiles.cpp [WebAssembly] Add support for table linking to wasm-ld 2021-01-18 16:57:18 +01:00
InputFiles.h [WebAssembly] Add support for table linking to wasm-ld 2021-01-18 16:57:18 +01:00
InputGlobal.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
InputTable.h [lld][WebAssembly] Add support for handling table symbols 2021-01-14 11:13:13 +01:00
LTO.cpp [LTO][wasm][NewPM] Allow using new pass manager for wasm LTO 2020-12-01 12:22:40 -08:00
LTO.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
MapFile.cpp [lld][WebAssembly] Fix segfault in map file support 2021-02-09 14:42:43 -08:00
MapFile.h [lld][WebAssembly] Add initial support for -Map/--print-map 2020-09-12 16:10:51 -07:00
MarkLive.cpp [lld][WebAssembly] Update comments mentioning legacy function names. NFC 2021-01-28 08:52:14 -08: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 [lld] Consistent help text for --save-temps 2021-01-25 10:27:18 -08:00
OutputSections.cpp [WebAssembly] fixed wasm64 data segment init exp not 64-bit 2021-02-01 11:32:50 -08:00
OutputSections.h [lld][WebAssembly] Add initial support for -Map/--print-map 2020-09-12 16:10:51 -07:00
OutputSegment.h [WebAssembly] wasm64: fix memory.init operand types 2020-08-10 10:15:20 -07:00
Relocations.cpp [lld][WebAssembly] Ensure stub symbols always get address 0 2020-11-25 18:26:34 -08:00
Relocations.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
Symbols.cpp [WebAssembly] Add support for table linking to wasm-ld 2021-01-18 16:57:18 +01:00
Symbols.h [WebAssembly] Add support for table linking to wasm-ld 2021-01-18 16:57:18 +01:00
SymbolTable.cpp [lld][WebAssembly] Fix typo in function name 2021-02-08 19:41:01 -08:00
SymbolTable.h [lld][WebAssembly] Fix typo in function name 2021-02-08 19:41:01 -08:00
SyntheticSections.cpp [lld][WebAssembly] Update comments mentioning legacy function names. NFC 2021-01-28 08:52:14 -08:00
SyntheticSections.h [lld][WebAssembly] Fix segfault in map file support 2021-02-09 14:42:43 -08:00
Writer.cpp [lld][WebAssembly] Allow --export of optional start/stop symbols 2021-02-09 13:14:52 -08:00
Writer.h [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
WriterUtils.cpp [lld][WebAssembly] Add support for handling table symbols 2021-01-14 11:13:13 +01:00
WriterUtils.h [lld][WebAssembly] Add support for handling table symbols 2021-01-14 11:13:13 +01:00