70 lines · yaml
1# RUN: yaml2obj %s -o %t.so2# RUN: llvm-nm %t.so | FileCheck %s3#4# CHECK: 00000001 T my_func_export5# CHECK: 0000002a D my_global_export6 7--- !WASM8FileHeader:9 Version: 0x110Sections:11 - Type: CUSTOM12 Name: dylink.013 MemorySize: 1514 MemoryAlignment: 015 TableSize: 016 TableAlignment: 017 Needed: []18 - Type: TYPE19 Signatures:20 - Index: 021 ParamTypes: []22 ReturnTypes: []23 - Type: IMPORT24 Imports:25 - Module: env26 Field: foo27 Kind: FUNCTION28 SigIndex: 029 - Module: env30 Field: bar31 Kind: GLOBAL32 GlobalType: I3233 GlobalMutable: true34 - Module: env35 Field: memory36 Kind: MEMORY37 Memory:38 Minimum: 0x139 - Type: FUNCTION40 FunctionTypes: [ 0 ]41 - Type: GLOBAL42 Globals:43 - Index: 144 Mutable: false45 Type: I3246 InitExpr:47 Opcode: I32_CONST48 Value: 4249 - Type: EXPORT50 Exports:51 - Name: my_func_export52 Kind: FUNCTION53 Index: 154 - Name: my_global_export55 Kind: GLOBAL56 Index: 157 - Type: CODE58 Functions:59 - Index: 160 Locals:61 Body: 0062 - Type: DATA63 Segments:64 - SectionOffset: 065 InitFlags: 066 Offset:67 Opcode: I32_CONST68 Value: 069 Content: ''70