1 ## Check that we successfully patch the PointerToRawData field in more than
2 ## one debug directory entry.
4 # RUN: yaml2obj %s -o %t.in.exe
6 # RUN: llvm-readobj --coff-debug-directory %t.in.exe | FileCheck %s --check-prefixes=DEBUG-DIRS,DEBUG-DIRS-PRE
7 # RUN: llvm-readobj --sections %t.in.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-PRE
8 # RUN: llvm-objcopy --remove-section .rdata %t.in.exe %t.out.exe
9 # RUN: llvm-readobj --coff-debug-directory %t.out.exe | FileCheck %s --check-prefixes=DEBUG-DIRS,DEBUG-DIRS-POST
10 # RUN: llvm-readobj --sections %t.out.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-POST
12 # DEBUG-DIRS: AddressOfRawData: 0x3038
13 # DEBUG-DIRS-PRE-NEXT: PointerToRawData: 0x638
14 # DEBUG-DIRS-POST-NEXT: PointerToRawData: 0x438
16 # DEBUG-DIRS: AddressOfRawData: 0x3051
17 # DEBUG-DIRS-PRE-NEXT: PointerToRawData: 0x651
18 # DEBUG-DIRS-POST-NEXT: PointerToRawData: 0x451
20 # SECTIONS: Name: .buildid
21 # SECTIONS-NEXT: VirtualSize:
22 # SECTIONS-NEXT: VirtualAddress:
23 # SECTIONS-NEXT: RawDataSize:
24 # SECTIONS-PRE-NEXT: PointerToRawData: 0x600
25 # SECTIONS-POST-NEXT: PointerToRawData: 0x400
29 AddressOfEntryPoint: 4096
31 SectionAlignment: 4096
33 MajorOperatingSystemVersion: 6
34 MinorOperatingSystemVersion: 0
37 MajorSubsystemVersion: 6
38 MinorSubsystemVersion: 0
39 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
40 DLLCharacteristics: [ ]
41 SizeOfStackReserve: 1048576
42 SizeOfStackCommit: 4096
43 SizeOfHeapReserve: 1048576
44 SizeOfHeapCommit: 4096
46 RelativeVirtualAddress: 12288
49 Machine: IMAGE_FILE_MACHINE_AMD64
61 SectionData: FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF0000000000000000
66 SectionData: 0000000046C7A65E00000000020000001900000038300000380600000000000046C7A65E000000001400000004000000513000005106000052534453B3411F5F27A80D2A4C4C44205044422E010000000001000000