llvm-project/lld/wasm
Thomas Lively 0fd5e7b2d8 [WebAssembly][lld] Fix segfault on .bss sections in mapfile
When memory is declared in the Wasm module, we rely on the implicit zero
initialization behavior and do not explicitly output .bss sections. The means
that they do not have associated `outputSec` entries, which was causing
segfaults in the mapfile support. Fix the issue by guarding against null
`outputSec` and falling back to using a zero offset.

Differential Revision: https://reviews.llvm.org/D102951
2021-07-07 23:31:48 -07:00
..
CMakeLists.txt Reland: "[lld][WebAssembly] Initial support merging string data" 2021-05-10 16:03:38 -07:00
Config.h [lld][WebAssembly] Add new `--import-undefined` option 2021-06-17 11:44:21 -07:00
Driver.cpp [OptTable] Rename PrintHelp to printHelp 2021-06-24 14:47:03 -07:00
InputChunks.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
InputChunks.h [lld][WebAssembly] Enable string tail merging in debug sections 2021-05-18 12:25:39 -07:00
InputElement.h [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
InputFiles.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
InputFiles.h [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07: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 [WebAssembly][lld] Fix segfault on .bss sections in mapfile 2021-07-07 23:31:48 -07:00
MapFile.h [lld][WebAssembly] Add initial support for -Map/--print-map 2020-09-12 16:10:51 -07:00
MarkLive.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07: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][WebAssembly] Add new `--import-undefined` option 2021-06-17 11:44:21 -07:00
OutputSections.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
OutputSections.h [lld][WebAssembly] Enable string tail merging in debug sections 2021-05-18 12:25:39 -07:00
OutputSegment.cpp [lld][WebAssembly] Enable string tail merging in debug sections 2021-05-18 12:25:39 -07:00
OutputSegment.h [lld][WebAssembly] Refactor input chunk class hierarchy. NFC 2021-05-17 21:01:17 -07:00
Relocations.cpp [lld][WebAssembly] Add new `--import-undefined` option 2021-06-17 11:44:21 -07:00
Relocations.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
SymbolTable.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
SymbolTable.h [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
Symbols.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
Symbols.h [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
SyntheticSections.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
SyntheticSections.h [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
Writer.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
Writer.h [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
WriterUtils.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
WriterUtils.h [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00