1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
2 # RUN: wasm-ld -shared --experimental-pic -o %t.so %t.o
3 # RUN: obj2yaml %t.so | FileCheck %s
5 .section .tdata.tls1,"",@
12 .section .custom_section.target_features,"",@
22 .ascii "mutable-globals"
25 # CHECK-NEXT: - Name: tls1
26 # CHECK-NEXT: Flags: [ TLS ]
27 # CHECK-NEXT: - Type: TYPE
29 # CHECK: - Type: GLOBAL
30 # CHECK-NEXT: Globals:
31 # CHECK-NEXT: - Index: 2
32 # CHECK-NEXT: Type: I32
33 # CHECK-NEXT: Mutable: false
34 # CHECK-NEXT: InitExpr:
35 # CHECK-NEXT: Opcode: I32_CONST
36 # CHECK-NEXT: Value: 0
38 # CHECK: - Type: EXPORT
39 # CHECK-NEXT: Exports:
40 # CHECK-NEXT: - Name: __wasm_call_ctors
41 # CHECK-NEXT: Kind: FUNCTION
42 # CHECK-NEXT: Index: 0
43 # CHECK-NEXT: - Name: __wasm_apply_data_relocs
44 # CHECK-NEXT: Kind: FUNCTION
45 # CHECK-NEXT: Index: 1
46 # CHECK-NEXT: - Name: tls1
47 # CHECK-NEXT: Kind: GLOBAL
48 # CHECK-NEXT: Index: 2