1 ## Check how we print sections.
3 # RUN: llvm-readobj --sections %p/Inputs/trivial.obj.wasm | FileCheck %s
6 # CHECK-NEXT: Section {
7 # CHECK-NEXT: Type: TYPE (0x1)
9 # CHECK-NEXT: Offset: 8
11 # CHECK-NEXT: Section {
12 # CHECK-NEXT: Type: IMPORT (0x2)
13 # CHECK-NEXT: Size: 93
14 # CHECK-NEXT: Offset: 31
16 # CHECK-NEXT: Section {
17 # CHECK-NEXT: Type: FUNCTION (0x3)
19 # CHECK-NEXT: Offset: 130
21 # CHECK-NEXT: Section {
22 # CHECK-NEXT: Type: CODE (0xA)
23 # CHECK-NEXT: Size: 36
24 # CHECK-NEXT: Offset: 139
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
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
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