76 lines · yaml
1# RUN: yaml2obj %s -o %t.wasm2# RUN: llvm-objdump -t %t.wasm | FileCheck %s3#4# CHECK: SYMBOL TABLE:5# CHECK-NEXT: 0000009f g F CODE 00000003 my_func_export6# CHECK-NEXT: 0000002a g O DATA 00000000 my_global_export7# CHECK-NEXT: 00000000 g TABLE 00000000 my_table_export8 9--- !WASM10FileHeader:11 Version: 0x112Sections:13 - Type: TYPE14 Signatures:15 - Index: 016 ParamTypes: []17 ReturnTypes: []18 - Type: IMPORT19 Imports:20 - Module: env21 Field: foo22 Kind: FUNCTION23 SigIndex: 024 - Module: env25 Field: bar26 Kind: GLOBAL27 GlobalType: I3228 GlobalMutable: true29 - Module: env30 Field: memory31 Kind: MEMORY32 Memory:33 Minimum: 0x134 - Type: FUNCTION35 FunctionTypes: [ 0 ]36 - Type: TABLE37 Tables:38 - Index: 039 ElemType: FUNCREF40 Limits:41 Flags: [ HAS_MAX ]42 Minimum: 0x143 Maximum: 0x144 - Type: GLOBAL45 Globals:46 - Index: 147 Mutable: false48 Type: I3249 InitExpr:50 Opcode: I32_CONST51 Value: 4252 - Type: EXPORT53 Exports:54 - Name: my_func_export55 Kind: FUNCTION56 Index: 157 - Name: my_global_export58 Kind: GLOBAL59 Index: 160 - Name: my_table_export61 Kind: TABLE62 Index: 063 - Type: CODE64 Functions:65 - Index: 166 Locals:67 Body: 0068 - Type: DATA69 Segments:70 - SectionOffset: 071 InitFlags: 072 Offset:73 Opcode: I32_CONST74 Value: 075 Content: ''76