[ELF] relocateNonAlloc: clean up workaround code
[llvm-project.git] / lld / test / wasm / optional-symbol.s
blobbac98838e6aeedd625f0fabe4c7266412aa2424a
1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
2 # RUN: wasm-ld --export=get_handle %t.o -o %t.wasm
4 .globl get_handle
5 get_handle:
6 .functype get_handle () -> (i32)
7 i32.const __dso_handle
8 end_function
10 .globl _start
11 _start:
12 .functype _start () -> ()
13 end_function