1 ## Check that llvm-objcopy does not produce an error for debug directory
2 ## entries without a payload (e.g. IMAGE_DEBUG_TYPE_REPRO,
3 ## IMAGE_DEBUG_TYPE_UNKNOWN) when patching entries that may have moved during
4 ## a requested operation. Also check that the such debug entries are present
7 ## The code to patch debug entries is executed even when no operation is
8 ## requested. Hence the RUN line below invokes llvm-objcopy without any
11 # RUN: yaml2obj %s -o %t.in.exe
12 # RUN: llvm-objcopy %t.in.exe %t.out.exe
13 # RUN: llvm-readobj --coff-debug-directory %t.out.exe | FileCheck %s
15 # CHECK: Type: Repro (0x10)
16 # CHECK: Type: Unknown (0x0)
20 AddressOfEntryPoint: 4096
22 SectionAlignment: 4096
24 MajorOperatingSystemVersion: 6
25 MinorOperatingSystemVersion: 0
28 MajorSubsystemVersion: 6
29 MinorSubsystemVersion: 0
30 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
31 DLLCharacteristics: [ ]
32 SizeOfStackReserve: 1048576
33 SizeOfStackCommit: 4096
34 SizeOfHeapReserve: 1048576
35 SizeOfHeapCommit: 4096
37 RelativeVirtualAddress: 8192
40 Machine: IMAGE_FILE_MACHINE_AMD64
52 ## '10' in SectionData below indicates the Repro type for the first debug
53 ## entry. The second entry has a type of Unknown ('00').
54 SectionData: 0000000047F96B2000000000100000000000000000000000000000000000000047F96B200000000000000000000000000000000000000000