71 lines · yaml
1# RUN: yaml2obj %s -o %t.so2# RUN: llvm-objdump -t %t.so | FileCheck %s3#4# CHECK: SYMBOL TABLE:5# CHECK-NEXT: 00000001 g F CODE 00000003 my_func_export6# CHECK-NEXT: 0000002a g O DATA 00000000 my_global_export7 8--- !WASM9FileHeader:10 Version: 0x111Sections:12 - Type: CUSTOM13 Name: dylink.014 MemorySize: 1515 MemoryAlignment: 016 TableSize: 017 TableAlignment: 018 Needed: []19 - Type: TYPE20 Signatures:21 - Index: 022 ParamTypes: []23 ReturnTypes: []24 - Type: IMPORT25 Imports:26 - Module: env27 Field: foo28 Kind: FUNCTION29 SigIndex: 030 - Module: env31 Field: bar32 Kind: GLOBAL33 GlobalType: I3234 GlobalMutable: true35 - Module: env36 Field: memory37 Kind: MEMORY38 Memory:39 Minimum: 0x140 - Type: FUNCTION41 FunctionTypes: [ 0 ]42 - Type: GLOBAL43 Globals:44 - Index: 145 Mutable: false46 Type: I3247 InitExpr:48 Opcode: I32_CONST49 Value: 4250 - Type: EXPORT51 Exports:52 - Name: my_func_export53 Kind: FUNCTION54 Index: 155 - Name: my_global_export56 Kind: GLOBAL57 Index: 158 - Type: CODE59 Functions:60 - Index: 161 Locals:62 Body: 0063 - Type: DATA64 Segments:65 - SectionOffset: 066 InitFlags: 067 Offset:68 Opcode: I32_CONST69 Value: 070 Content: ''71