91 lines · yaml
1# RUN: yaml2obj %s | obj2yaml | FileCheck %s2--- !WASM3FileHeader:4 Version: 0x000000015Sections:6 - Type: TYPE7 Signatures:8 - Index: 09 ParamTypes:10 - I3211 ReturnTypes:12 - F3213 - Index: 114 ParamTypes:15 - I3216 - I6417 ReturnTypes: []18 - Type: FUNCTION19 FunctionTypes:20 - 021 - 122 - Type: CODE23 Relocations:24 - Type: R_WASM_TABLE_INDEX_SLEB25 Index: 026 Offset: 0x0000000627 - Type: R_WASM_FUNCTION_INDEX_LEB28 Index: 129 Offset: 0x0000002530 Functions:31 - Index: 032 Locals:33 - Type: I3234 Count: 335 Body: 418080808000210020002101200111808080800000210220020F0B36 - Index: 137 Locals:38 - Type: I3239 Count: 140 Body: 108180808000210020000F0B41 - Type: CUSTOM42 Name: linking43 Version: 244 SymbolTable:45 - Index: 046 Kind: FUNCTION47 Name: func148 Flags: [ ]49 Function: 050 - Index: 151 Kind: FUNCTION52 Name: func253 Flags: [ ]54 Function: 155...56# CHECK: --- !WASM57# CHECK: FileHeader:58# CHECK: Version: 0x159# CHECK: Sections:60# CHECK: - Type: TYPE61# CHECK: Signatures:62# CHECK: - Index: 063# CHECK: ParamTypes:64# CHECK: - I3265# CHECK: ReturnTypes:66# CHECK: - F3267# CHECK: - Index: 168# CHECK: ParamTypes:69# CHECK: - I3270# CHECK: - I6471# CHECK: ReturnTypes: []72# CHECK: - Type: CODE73# CHECK: Relocations:74# CHECK: - Type: R_WASM_TABLE_INDEX_SLEB75# CHECK: Index: 076# CHECK: Offset: 0x677# CHECK: - Type: R_WASM_FUNCTION_INDEX_LEB78# CHECK: Index: 179# CHECK: Offset: 0x2580# CHECK: Functions:81# CHECK: - Index: 082# CHECK: Locals:83# CHECK: - Type: I3284# CHECK: Count: 385# CHECK: Body: 418080808000210020002101200111808080800000210220020F0B86# CHECK: - Index: 187# CHECK: Locals:88# CHECK: - Type: I3289# CHECK: Count: 190# CHECK: Body: 108180808000210020000F0B91