1 ## Test that printing debug directories that aren't part of the runtime
2 ## mapped sections doesn't fail. Currently llvm-readobj only prints the
3 ## entry itself and not the payload. Note that there isn't currently any
4 ## meaningful data in this test input where it claims the debug entry
7 # RUN: yaml2obj %s -o %t.exe
9 # RUN: llvm-readobj --coff-debug-directory %t.exe | FileCheck %s
11 # CHECK: DebugDirectory [
12 # CHECK-NEXT: DebugEntry {
13 # CHECK-NEXT: Characteristics: 0x0
14 # CHECK-NEXT: TimeDateStamp: 2019-01-17 21:06:10 (0x5C40EE42)
15 # CHECK-NEXT: MajorVersion: 0x0
16 # CHECK-NEXT: MinorVersion: 0x0
17 # CHECK-NEXT: Type: CodeView (0x2)
18 # CHECK-NEXT: SizeOfData: 0x19
19 # CHECK-NEXT: AddressOfRawData: 0x0
20 # CHECK-NEXT: PointerToRawData: 0x3E4
22 # CHECK-NEXT: DebugEntry {
23 # CHECK-NEXT: Characteristics: 0x0
24 # CHECK-NEXT: TimeDateStamp: 2019-01-17 21:06:10 (0x5C40EE42)
25 # CHECK-NEXT: MajorVersion: 0x0
26 # CHECK-NEXT: MinorVersion: 0x0
27 # CHECK-NEXT: Type: ExtendedDLLCharacteristics (0x14)
28 # CHECK-NEXT: SizeOfData: 0x4
29 # CHECK-NEXT: AddressOfRawData: 0x0
30 # CHECK-NEXT: PointerToRawData: 0x3E0
36 AddressOfEntryPoint: 4096
38 SectionAlignment: 4096
40 MajorOperatingSystemVersion: 6
41 MinorOperatingSystemVersion: 0
44 MajorSubsystemVersion: 6
45 MinorSubsystemVersion: 0
46 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
47 DLLCharacteristics: [ ]
48 SizeOfStackReserve: 1048576
49 SizeOfStackCommit: 4096
50 SizeOfHeapReserve: 1048576
51 SizeOfHeapCommit: 4096
53 RelativeVirtualAddress: 8192
56 Machine: IMAGE_FILE_MACHINE_AMD64
63 SectionData: C3909090909090909090909090909090
68 SectionData: 0000000042EE405C00000000020000001900000000000000E40300000000000042EE405C00000000140000000400000000000000E0030000