46 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: wasm-ld -shared --experimental-pic -o %t.so %t.o3# RUN: obj2yaml %t.so | FileCheck %s4 5.section .tdata.tls1,"",@6.globl tls17.p2align 28tls1:9 .int32 110 .size tls1, 411 12.section .custom_section.target_features,"",@13 .int8 314 .int8 4315 .int8 716 .ascii "atomics"17 .int8 4318 .int8 1119 .ascii "bulk-memory"20 .int8 4321 .int8 1522 .ascii "mutable-globals"23 24# CHECK: ExportInfo:25# CHECK-NEXT: - Name: tls126# CHECK-NEXT: Flags: [ TLS ]27# CHECK-NEXT: - Type: TYPE28 29# CHECK: - Type: GLOBAL30# CHECK-NEXT: Globals:31# CHECK-NEXT: - Index: 232# CHECK-NEXT: Type: I3233# CHECK-NEXT: Mutable: false34# CHECK-NEXT: InitExpr:35# CHECK-NEXT: Opcode: I32_CONST36# CHECK-NEXT: Value: 037 38# CHECK: - Type: EXPORT39# CHECK-NEXT: Exports:40# CHECK-NEXT: - Name: __wasm_call_ctors41# CHECK-NEXT: Kind: FUNCTION42# CHECK-NEXT: Index: 043# CHECK-NEXT: - Name: tls144# CHECK-NEXT: Kind: GLOBAL45# CHECK-NEXT: Index: 246