llvm-project/lld/test/wasm
Sam Clegg 7f81418183 [WebAssembly] Honor --allow-undefined even for explicit exports
When a symbol is exported via --export=foo but --allow-undefined
is also specified, the symbol is now allowed to be undefined.
Previously we were special casing such symbols.

This combinations of behavior is exactly what emescripten
requires. Although we are trying hard not to allow emscripten
specific features in lld, this one makes sense.

Enforce this behavior by added this case to test/wasm/undefined.ll.

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

llvm-svn: 326976
2018-03-08 01:16:05 +00:00
..
Inputs [WebAssembly] Check signatures of weakly defined funtions too 2018-02-20 17:20:44 +00:00
alias.ll [WebAssembly] Reorder exports to match symbol table order 2018-03-01 09:38:02 +00:00
archive.ll [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
call-indirect.ll [WebAssembly] Export non-hidden defined data symbols via wasm globals 2018-03-02 14:51:36 +00:00
comdats.ll [WebAssembly] Export non-hidden defined data symbols via wasm globals 2018-03-02 14:51:36 +00:00
conflict.test Use wasm-ld instead of "lld -flavor wasm". 2018-02-16 22:58:02 +00:00
data-layout.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:20:51 +00:00
driver.ll Do not print out "no input files" twice. 2018-02-16 22:58:19 +00:00
entry.ll [WebAssembly] Reorder exports to match symbol table order 2018-03-01 09:38:02 +00:00
export.ll [WebAssembly] Reorder exports to match symbol table order 2018-03-01 09:38:02 +00:00
function-imports-first.ll [WebAssembly] Remove DataSize from linking metadata 2018-02-27 23:58:03 +00:00
function-imports.ll Use wasm-ld instead of "lld -flavor wasm". 2018-02-16 22:58:02 +00:00
function-index.test Use wasm-ld instead of "lld -flavor wasm". 2018-02-16 22:58:02 +00:00
gc-sections.ll [WebAssembly] Remove DataSize from linking metadata 2018-02-27 23:58:03 +00:00
import-memory.test Use wasm-ld instead of "lld -flavor wasm". 2018-02-16 22:58:02 +00:00
init-fini.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:20:51 +00:00
invalid-stack-size.test Use wasm-ld instead of "lld -flavor wasm". 2018-02-16 22:58:02 +00:00
lit.local.cfg
load-undefined.test [WebAssembly] Reorder exports to match symbol table order 2018-03-01 09:38:02 +00:00
local-symbols.ll [WebAssembly] Export non-hidden defined data symbols via wasm globals 2018-03-02 14:51:36 +00:00
locals-duplicate.test [WebAssembly] Export non-hidden defined data symbols via wasm globals 2018-03-02 14:51:36 +00:00
many-functions.ll [WebAssembly] Remove DataSize from linking metadata 2018-02-27 23:58:03 +00:00
relocatable.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:20:51 +00:00
signature-mismatch-weak.ll [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
signature-mismatch.ll [WebAssembly] Add explicit symbol table 2018-02-23 05:08:53 +00:00
stack-pointer.ll [WebAssembly] Reorder symbol table to match MC order 2018-02-28 17:20:51 +00:00
strip-debug.test Use wasm-ld instead of "lld -flavor wasm". 2018-02-16 22:58:02 +00:00
symbol-type-mismatch.ll [WebAssembly] Rename GlobalSymbol types. NFC. 2018-02-20 23:38:27 +00:00
undefined-entry.test Use wasm-ld instead of "lld -flavor wasm". 2018-02-16 22:58:02 +00:00
undefined.ll [WebAssembly] Honor --allow-undefined even for explicit exports 2018-03-08 01:16:05 +00:00
version.ll Use wasm-ld instead of "lld -flavor wasm". 2018-02-16 22:58:02 +00:00
visibility-hidden.ll [WebAssembly] Reorder exports to match symbol table order 2018-03-01 09:38:02 +00:00
weak-alias-overide.ll [WebAssembly] Reorder exports to match symbol table order 2018-03-01 09:38:02 +00:00
weak-alias.ll [WebAssembly] Reorder exports to match symbol table order 2018-03-01 09:38:02 +00:00
weak-symbols.ll [WebAssembly] Export non-hidden defined data symbols via wasm globals 2018-03-02 14:51:36 +00:00
weak-undefined.ll [WebAssembly] Reorder exports to match symbol table order 2018-03-01 09:38:02 +00:00