llvm-project/lld/test/wasm/lto
Sam Clegg b062fe1816 [lld][WebAssembly] Fail if bitcode objects are pulled in after LTO
This can happen if lto::LTO::getRuntimeLibcallSymbols doesn't return
an complete/accurate list of libcalls.  In this case new bitcode
object can be linked in after LTO.

For example the WebAssembly backend currently calls:
  setLibcallName(RTLIB::FPROUND_F32_F16, "__truncsfhf2");

But `__truncsfhf2` is not part of `getRuntimeLibcallSymbols` so if
this symbol is generated during LTO the link will currently fail.

Without this change the linker crashes because the bitcode symbol
makes it all the way to the output phase.

See: https://bugs.llvm.org/show_bug.cgi?id=44353

Differential Revision: https://reviews.llvm.org/D71632
2020-02-11 17:36:15 -08:00
..
Inputs [lld][WebAssembly] Fail if bitcode objects are pulled in after LTO 2020-02-11 17:36:15 -08:00
archive.ll [WebAssebmly] Allow __wasm_call_ctors to be GC'ed 2019-03-01 22:35:47 +00:00
atomics.ll [WebAssembly] Remove uses of ThreadModel 2019-02-28 18:39:08 +00:00
cache.ll [test] Mark atime-based tests unsupported on NetBSD 2018-12-07 16:21:08 +00:00
comdat.ll [WebAssembly] Improve lto/comdat.ll test. NFC. 2019-06-05 21:08:30 +00:00
diagnostics.ll [LTO] Errors in LLVM backend should manifest as lld errors 2018-07-02 21:01:43 +00:00
export.ll [WebAssembly] Don't export __data_end and __heap_base by default. 2019-05-31 22:51:59 +00:00
import-attributes.ll [lld][WebAssebmly] Preserve custom import attributes with LTO 2019-10-17 05:16:54 +00:00
incompatible.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
internalize-basic.ll
libcall-archive.ll [lld][WebAssembly] Add libcall symbols to the link when LTO is being used. 2020-01-10 11:01:05 -08:00
libcall-truncsfhf2.ll [lld][WebAssembly] Fail if bitcode objects are pulled in after LTO 2020-02-11 17:36:15 -08:00
lto-start.ll [WebAssebmly] Allow __wasm_call_ctors to be GC'ed 2019-03-01 22:35:47 +00:00
opt-level.ll [WebAssembly] Use wasm-ld rather than lld with -flavor in tests. NFC. 2019-02-05 16:53:33 +00:00
parallel.ll
relocatable-undefined.ll [WebAssembly] Fix crash with LTO + relocatable + undefined symbols 2019-01-30 18:55:15 +00:00
relocatable.ll [test] Change llvm-readobj -long-option to --long-option or well-known short options. NFC 2019-05-01 05:49:01 +00:00
save-temps.ll
signature-mismatch.ll [WebAssembly] Don't generate invalid modules when function signatures mismatch 2019-02-20 23:19:31 +00:00
thinlto.ll
undef.ll [WebAssembly] Fix signatures of undefined function in LTO object which are not called directly. 2019-05-29 15:36:42 +00:00
used.ll [WebAssebmly] Allow __wasm_call_ctors to be GC'ed 2019-03-01 22:35:47 +00:00
verify-invalid.ll
weak-undefined.ll [WebAssembly] Refactor handling of weak undefined functions. NFC. 2019-02-07 22:42:16 +00:00
weak.ll [test] Change llvm-readobj -long-option to --long-option or well-known short options. NFC 2019-05-01 05:49:01 +00:00