1## Check how we print sections. 2 3# RUN: llvm-readobj --sections %p/Inputs/trivial.obj.wasm | FileCheck %s 4 5# CHECK: Sections [ 6# CHECK-NEXT: Section { 7# CHECK-NEXT: Type: TYPE (0x1) 8# CHECK-NEXT: Size: 17 9# CHECK-NEXT: Offset: 8 10# CHECK-NEXT: } 11# CHECK-NEXT: Section { 12# CHECK-NEXT: Type: IMPORT (0x2) 13# CHECK-NEXT: Size: 93 14# CHECK-NEXT: Offset: 31 15# CHECK-NEXT: } 16# CHECK-NEXT: Section { 17# CHECK-NEXT: Type: FUNCTION (0x3) 18# CHECK-NEXT: Size: 3 19# CHECK-NEXT: Offset: 130 20# CHECK-NEXT: } 21# CHECK-NEXT: Section { 22# CHECK-NEXT: Type: CODE (0xA) 23# CHECK-NEXT: Size: 36 24# CHECK-NEXT: Offset: 139 25# CHECK-NEXT: } 26# CHECK-NEXT: Section { 27# CHECK-NEXT: Type: DATA (0xB) 28# CHECK-NEXT: Size: 19 29# CHECK-NEXT: Offset: 181 30# CHECK-NEXT: Segments [ 31# CHECK-NEXT: Segment { 32# CHECK-NEXT: Name: .rodata..L.str 33# CHECK-NEXT: Size: 13 34# CHECK-NEXT: Offset: 0 35# CHECK-NEXT: } 36# CHECK-NEXT: ] 37# CHECK-NEXT: } 38# CHECK-NEXT: Section { 39# CHECK-NEXT: Type: CUSTOM (0x0) 40# CHECK-NEXT: Size: 89 41# CHECK-NEXT: Offset: 206 42# CHECK-NEXT: Name: linking 43# CHECK-NEXT: } 44# CHECK-NEXT: Section { 45# CHECK-NEXT: Type: CUSTOM (0x0) 46# CHECK-NEXT: Size: 15 47# CHECK-NEXT: Offset: 309 48# CHECK-NEXT: Name: reloc.CODE 49# CHECK-NEXT: } 50# CHECK-NEXT: ] 51