[LLD][COFF] Ignore DEBUG_S_XFGHASH_TYPE/VIRTUAL
[llvm-project.git] / lld / test / wasm / shared-needed.s
blob12c4597190a3b5c98e0b1eb071838061ad4f6eff
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
10 .globl foo
11 .globl data
13 foo:
14 .functype foo () -> ()
15 end_function
17 .section .data,"",@
18 data:
19 .p2align 2
20 .int32 0
21 .size data,4
24 # SO1: Sections:
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
34 # SO2: Sections:
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
41 # SO2-NEXT: Needed:
42 # SO2-NEXT: - shared-needed.s.tmp1.so
43 # SO2-NEXT: - Type: TYPE