section-headers.test
2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
RUN: llvm-pdbutil dump -section-headers %p/Inputs/empty.pdb | FileCheck %s
CHECK: Section Headers
CHECK-NEXT: ============================================================
CHECK-LABEL: SECTION HEADER #1
CHECK-NEXT: .text name
CHECK-NEXT: 101A virtual size
CHECK-NEXT: 1000 virtual address
CHECK-NEXT: 1200 size of raw data
CHECK-NEXT: 400 file pointer to raw data
CHECK-NEXT: 0 file pointer to relocation table
CHECK-NEXT: 0 file pointer to line numbers
CHECK-NEXT: 0 number of relocations
CHECK-NEXT: 0 number of line numbers
CHECK-NEXT: 60000020 flags
CHECK-NEXT: IMAGE_SCN_CNT_CODE
CHECK-NEXT: IMAGE_SCN_MEM_EXECUTE
CHECK-NEXT: IMAGE_SCN_MEM_READ
CHECK-LABEL: SECTION HEADER #2
CHECK-NEXT: .rdata name
CHECK-NEXT: 2B2 virtual size
CHECK-NEXT: 3000 virtual address
CHECK-NEXT: 400 size of raw data
CHECK-NEXT: 1600 file pointer to raw data
CHECK-NEXT: 0 file pointer to relocation table
CHECK-NEXT: 0 file pointer to line numbers
CHECK-NEXT: 0 number of relocations
CHECK-NEXT: 0 number of line numbers
CHECK-NEXT: 40000040 flags
CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
CHECK-NEXT: IMAGE_SCN_MEM_READ
CHECK-LABEL: SECTION HEADER #3
CHECK-NEXT: .data name
CHECK-NEXT: 4 virtual size
CHECK-NEXT: 4000 virtual address
CHECK-NEXT: 0 size of raw data
CHECK-NEXT: 0 file pointer to raw data
CHECK-NEXT: 0 file pointer to relocation table
CHECK-NEXT: 0 file pointer to line numbers
CHECK-NEXT: 0 number of relocations
CHECK-NEXT: 0 number of line numbers
CHECK-NEXT: C0000040 flags
CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
CHECK-NEXT: IMAGE_SCN_MEM_READ
CHECK-NEXT: IMAGE_SCN_MEM_WRITE
CHECK-LABEL: SECTION HEADER #4
CHECK-NEXT: .reloc name
CHECK-NEXT: 8 virtual size
CHECK-NEXT: 5000 virtual address
CHECK-NEXT: 200 size of raw data
CHECK-NEXT: 1A00 file pointer to raw data
CHECK-NEXT: 0 file pointer to relocation table
CHECK-NEXT: 0 file pointer to line numbers
CHECK-NEXT: 0 number of relocations
CHECK-NEXT: 0 number of line numbers
CHECK-NEXT: 42000040 flags
CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
CHECK-NEXT: IMAGE_SCN_MEM_DISCARDABLE
CHECK-NEXT: IMAGE_SCN_MEM_READ
CHECK: Original Section Headers
CHECK-NEXT: ============================================================
CHECK-NEXT: PDB does not contain the requested image section header type