1# RUN: yaml2obj %s | obj2yaml | FileCheck %s 2--- !WASM 3FileHeader: 4 Version: 0x00000001 5Sections: 6 - Type: MEMORY 7 Memories: 8 - Initial: 0x00000003 9 - Type: DATA 10 Segments: 11 - MemoryIndex: 0 12 Offset: 13 Opcode: I32_CONST 14 Value: 4 15 Content: '10001000' 16 Relocations: 17 - Type: R_WEBASSEMBLY_MEMORY_ADDR_I32 18 Index: 0 19 Offset: 0x00000006 20 Addend: 8 21 - Type: R_WEBASSEMBLY_MEMORY_ADDR_I32 22 Index: 0 23 Offset: 0x00000006 24 Addend: -6 25 - Type: CUSTOM 26 Name: linking 27 Version: 1 28 SymbolTable: 29 - Index: 0 30 Kind: DATA 31 Name: dataSymbol 32 Flags: [ ] 33 Segment: 0 34 Offset: 0 35 Size: 4 36... 37# CHECK: --- !WASM 38# CHECK: FileHeader: 39# CHECK: Version: 0x00000001 40# CHECK: Sections: 41# CHECK: - Type: DATA 42# CHECK-NEXT: Relocations: 43# CHECK-NEXT: - Type: R_WEBASSEMBLY_MEMORY_ADDR_I32 44# CHECK-NEXT: Index: 0 45# CHECK-NEXT: Offset: 0x00000006 46# CHECK-NEXT: Addend: 8 47# CHECK-NEXT: - Type: R_WEBASSEMBLY_MEMORY_ADDR_I32 48# CHECK-NEXT: Index: 0 49# CHECK-NEXT: Offset: 0x00000006 50# CHECK-NEXT: Addend: -6 51# CHECK-NEXT: Segments: 52# CHECK-NEXT: - SectionOffset: 6 53# CHECK-NEXT: MemoryIndex: 0 54# CHECK-NEXT: Offset: 55# CHECK-NEXT: Opcode: I32_CONST 56# CHECK-NEXT: Value: 4 57# CHECK-NEXT: Content: '10001000' 58# CHECK-NEXT: - Type: CUSTOM 59