1 ## Check how we print sections.
3 # RUN: llvm-readobj --sections %p/Inputs/trivial.obj.coff-i386 | FileCheck %s
6 # CHECK-NEXT: Section {
7 # CHECK-NEXT: Number: 1
8 # CHECK-NEXT: Name: .text (2E 74 65 78 74 00 00 00)
9 # CHECK-NEXT: VirtualSize: 0x0
10 # CHECK-NEXT: VirtualAddress: 0x0
11 # CHECK-NEXT: RawDataSize: 22
12 # CHECK-NEXT: PointerToRawData: 0x64
13 # CHECK-NEXT: PointerToRelocations: 0x7A
14 # CHECK-NEXT: PointerToLineNumbers: 0x0
15 # CHECK-NEXT: RelocationCount: 3
16 # CHECK-NEXT: LineNumberCount: 0
17 # CHECK-NEXT: Characteristics [ (0x60500020)
18 # CHECK-NEXT: IMAGE_SCN_ALIGN_16BYTES (0x500000)
19 # CHECK-NEXT: IMAGE_SCN_CNT_CODE (0x20)
20 # CHECK-NEXT: IMAGE_SCN_MEM_EXECUTE (0x20000000)
21 # CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
24 # CHECK-NEXT: Section {
25 # CHECK-NEXT: Number: 2
26 # CHECK-NEXT: Name: .data (2E 64 61 74 61 00 00 00)
27 # CHECK-NEXT: VirtualSize: 0x0
28 # CHECK-NEXT: VirtualAddress: 0x0
29 # CHECK-NEXT: RawDataSize: 13
30 # CHECK-NEXT: PointerToRawData: 0x98
31 # CHECK-NEXT: PointerToRelocations: 0x0
32 # CHECK-NEXT: PointerToLineNumbers: 0x0
33 # CHECK-NEXT: RelocationCount: 0
34 # CHECK-NEXT: LineNumberCount: 0
35 # CHECK-NEXT: Characteristics [ (0xC0300040)
36 # CHECK-NEXT: IMAGE_SCN_ALIGN_4BYTES (0x300000)
37 # CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
38 # CHECK-NEXT: IMAGE_SCN_MEM_READ (0x40000000)
39 # CHECK-NEXT: IMAGE_SCN_MEM_WRITE (0x80000000)