hanchenye-llvm-project/lld/wasm
Thomas Lively d851fce4cb [lld][WebAssembly] Do not emit initialization for .bss segments
Summary:
This patch fixes a bug where initialization code for .bss segments was
emitted in the memory initialization function even though the .bss
segments were discounted in the datacount section and omitted in the
data section. This was producing invalid binaries due to out-of-bounds
segment indices on the memory.init and data.drop instructions that
were trying to operate on the nonexistent .bss segments.

Reviewers: sbc100

Subscribers: dschuff, jgravelle-google, aheejin, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80354
2020-05-21 11:33:25 -07:00
..
CMakeLists.txt
Config.h [lld][WebAssembly] Handle 4gb max memories 2020-04-09 13:06:41 -07:00
Driver.cpp [Support] Move LLD's parallel algorithm wrappers to support 2020-05-05 15:21:05 -07:00
InputChunks.cpp [WebAssembly] Fix faulty logic in verifyRelocTargets 2020-04-16 18:19:56 -07:00
InputChunks.h [WebAssembly] Support wasm exports with zero-length names. 2020-03-26 16:20:43 -07:00
InputEvent.h
InputFiles.cpp [WebAssembly] Add int32 DW_OP_WASM_location variant 2020-04-16 16:32:17 -07:00
InputFiles.h
InputGlobal.h
LTO.cpp [ThinLTO] Allow usage of all hardware threads in the system 2020-03-27 10:20:58 -04:00
LTO.h
MarkLive.cpp
MarkLive.h
Options.td [lld][COFF][ELF][WebAssembly] Replace --[no-]threads /threads[:no] with --threads={1,2,...} /threads:{1,2,...} 2020-03-31 08:46:12 -07:00
OutputSections.cpp [Support] Move LLD's parallel algorithm wrappers to support 2020-05-05 15:21:05 -07:00
OutputSections.h
OutputSegment.h
Relocations.cpp [lld][WebAssembly] Honor --allow-undefined for data symbols too 2020-05-06 12:39:29 -07:00
Relocations.h
SymbolTable.cpp [lld][WebAssembly] Fix for --relocatable and signature mismatches 2020-05-13 10:27:09 -07:00
SymbolTable.h [lld] NFC: fix trivial typos in comments 2020-04-02 01:21:36 +09:00
Symbols.cpp [lld] NFC: fix trivial typos in comments 2020-04-02 01:21:36 +09:00
Symbols.h [lld] NFC: fix trivial typos in comments 2020-04-02 01:21:36 +09:00
SyntheticSections.cpp [lld][WebAssembly] Do not emit initialization for .bss segments 2020-05-21 11:33:25 -07:00
SyntheticSections.h [lld][WebAssembly] Do not emit initialization for .bss segments 2020-05-21 11:33:25 -07:00
Writer.cpp [lld][WebAssembly] Do not emit initialization for .bss segments 2020-05-21 11:33:25 -07:00
Writer.h
WriterUtils.cpp [WebAssmebly] Add support for defined wasm globals in MC and lld 2020-04-30 12:43:15 -07:00
WriterUtils.h