[WebAssembly] Don't load weak undefined symbols from archive files
authorSam Clegg <sbc@chromium.org>
Tue, 29 Jan 2019 22:26:31 +0000 (22:26 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 29 Jan 2019 22:26:31 +0000 (22:26 +0000)
commit37b4ee523bd94da3cf61246fa735522fff248423
tree1016401ccf94e58c4d943ac6cd2e66554e57b5ca
parent7fac51724f8875fb063a5ec7079b0172b3387717
[WebAssembly] Don't load weak undefined symbols from archive files

Summary: Fixes PR40494

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

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

llvm-svn: 352554
lld/test/wasm/archive-weak-undefined.ll [new file with mode: 0644]
lld/wasm/Driver.cpp
lld/wasm/SymbolTable.cpp
lld/wasm/Symbols.h