llvm-project/lld/test/wasm/Inputs
Heejin Ahn 9261ee32dc [WebAssembly] Make EH work with dynamic linking
This makes Wasm EH work with dynamic linking. So far we were only able
to handle destructors, which do not use any tags or LSDA info.

1. This uses `TargetExternalSymbol` for `GCC_except_tableN` symbols,
   which points to the address of per-function LSDA info. It is more
   convenient to use than `MCSymbol` because it can take additional
   target flags.

2. When lowering `wasm_lsda` intrinsic, if PIC is enabled, make the
   symbol relative to `__memory_base` and generate the `add` node. If
   PIC is disabled, continue to use the absolute address.

3. Make tag symbols (`__cpp_exception` and `__c_longjmp`) undefined in
   the backend, because it is hard to make it work with dynamic
   linking's loading order. Instead, we make all tag symbols undefined
   in the LLVM backend and import it from JS.

4. Add support for undefined tags to the linker.

Companion patches:
- https://github.com/WebAssembly/binaryen/pull/4223
- https://github.com/emscripten-core/emscripten/pull/15266

Reviewed By: sbc100

Differential Revision: https://reviews.llvm.org/D111388
2021-10-12 23:28:27 -07:00
..
archive1.ll
archive2.ll
archive3.ll
call-indirect.s [WebAssembly][lld] Fix call-indirect.s test to validate 2021-01-19 16:12:38 +01:00
call-ret32.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
comdat-data.s [lld][WebAssembly] Do not merge comdat data segments 2021-05-03 16:43:29 -07:00
comdat1.ll
comdat1.s [WebAssembly][lld] Exclude COMDAT sections 2020-12-10 17:47:41 -08:00
comdat2.ll
comdat2.s [WebAssembly][lld] Exclude COMDAT sections 2020-12-10 17:47:41 -08:00
ctor-ctor.s [WebAssembly] GC constructor functions in otherwise unused archive objects 2020-10-12 18:54:57 -07:00
ctor-lib.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
ctor-setup-call-def.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
ctor-setup.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
ctor-start.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
custom.ll
debuginfo1.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
debuginfo2.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
disallow-feature-foo.yaml
explicit-section.ll
global-ctor-dtor.ll
globals.yaml
hello.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
hidden.s
import-attributes.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
locals-duplicate1.ll
locals-duplicate2.ll
many-funcs.ll
merge-string-debug2.s [lld][WebAssembly] Enable string tail merging in debug sections 2021-05-18 12:25:39 -07:00
no-feature-foo.yaml
optional-symbol.s
require-feature-foo.yaml
ret32.s
ret64.s
sig_mismatch.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
stack-first.s [lld][WebAssembly] Align __heap_base 2021-07-24 14:03:26 +02:00
start.s
strong-symbol.s
tag-section1.ll [WebAssembly] Make EH work with dynamic linking 2021-10-12 23:28:27 -07:00
tag-section2.ll [WebAssembly] Make EH work with dynamic linking 2021-10-12 23:28:27 -07:00
undefined-globals.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
use-feature-foo.yaml
weak-alias.ll
weak-symbol1.s
weak-symbol2.s
weak-undefined.s