llvm-project/lld/wasm
Sam Clegg 9abe8c4805 [lld][WebAssembly] Report undefined symbols during scanRelocations
This puts handling of undefined symbols in a single location.  Its
also more in line with the ELF backend which only reports undefined
symbols based on relocations.

One side effect is that we no longer report undefined symbols that are
only referenced in GC'd sections.

This also fixes a crash reported in the emscripten toolchain:
https://github.com/emscripten-core/emscripten/issues/8930.

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

llvm-svn: 365553
2019-07-09 20:45:20 +00:00
..
CMakeLists.txt [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
Config.h [WebAssembly] Add option to emit passive segments 2019-07-03 22:04:54 +00:00
Driver.cpp lld, llvm-dlltool, llvm-lib: Use getAsString() instead of getSpelling() for printing unknown args 2019-07-05 12:31:32 +00:00
InputChunks.cpp [lld][WebAssembly] Fix __start/__stop symbols when combining input segments 2019-07-08 10:35:08 +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 [lld][WebAssembly] Report undefined symbols during scanRelocations 2019-07-09 20:45:20 +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] Add option to emit passive segments 2019-07-03 22:04:54 +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 [WebAssembly] Add option to emit passive segments 2019-07-03 22:04:54 +00:00
OutputSections.cpp Add parentheses to silence warnings. 2019-07-08 22:05:02 +00:00
OutputSections.h [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
OutputSegment.h [WebAssembly] Add option to emit passive segments 2019-07-03 22:04:54 +00:00
Relocations.cpp [lld][WebAssembly] Report undefined symbols during scanRelocations 2019-07-09 20:45:20 +00:00
Relocations.h [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
SymbolTable.cpp [lld][WebAssembly] Report undefined symbols during scanRelocations 2019-07-09 20:45:20 +00:00
SymbolTable.h [lld][WebAssembly] Report undefined symbols during scanRelocations 2019-07-09 20:45:20 +00:00
Symbols.cpp [WebAssembly] Add option to emit passive segments 2019-07-03 22:04:54 +00:00
Symbols.h [lld][WebAssembly] Fix __start/__stop symbols when combining input segments 2019-07-08 10:35:08 +00:00
SyntheticSections.cpp [WebAssembly] Add option to emit passive segments 2019-07-03 22:04:54 +00:00
SyntheticSections.h [WebAssembly] Add support for -emit-relocs 2019-05-24 13:28:27 +00:00
Writer.cpp [lld][WebAssembly] Report undefined symbols during scanRelocations 2019-07-09 20:45:20 +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