1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
2 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o
4 # RUN: wasm-ld -shared --experimental-pic -o %t1.so %t.o
5 # RUN: obj2yaml %t1.so | FileCheck %s -check-prefix=SO1
7 # RUN: wasm-ld -shared --experimental-pic -o %t2.so %t1.so %t.ret32.o
8 # RUN: obj2yaml %t2.so | FileCheck %s -check-prefix=SO2
14 .functype foo () -> ()
25 # SO1-NEXT: - Type: CUSTOM
26 # SO1-NEXT: Name: dylink.0
27 # SO1-NEXT: MemorySize: 4
28 # SO1-NEXT: MemoryAlignment: 2
29 # SO1-NEXT: TableSize: 0
30 # SO1-NEXT: TableAlignment: 0
31 # SO1-NEXT: Needed: []
32 # SO1-NEXT: - Type: TYPE
35 # SO2-NEXT: - Type: CUSTOM
36 # SO2-NEXT: Name: dylink.0
37 # SO2-NEXT: MemorySize: 0
38 # SO2-NEXT: MemoryAlignment: 0
39 # SO2-NEXT: TableSize: 0
40 # SO2-NEXT: TableAlignment: 0
42 # SO2-NEXT: - shared-needed.s.tmp1.so
43 # SO2-NEXT: - Type: TYPE