llvm-project
43 строки · 1.2 Кб
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
3
4# RUN: wasm-ld -shared --experimental-pic -o %t1.so %t.o
5# RUN: obj2yaml %t1.so | FileCheck %s -check-prefix=SO1
6
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
9
10.globl foo
11.globl data
12
13foo:
14.functype foo () -> ()
15end_function
16
17.section .data,"",@
18data:
19.p2align 2
20.int32 0
21.size data,4
22
23
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
33
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
44