1## Check that we error out when trying to patch up debug directories that 2## point to data outside of the runtime mapped sections (as we don't try to 3## locate and copy such payloads from the padding areas of the input file). 4 5# RUN: yaml2obj %s -o %t.in.exe 6 7# RUN: not llvm-objcopy --remove-section .rdata %t.in.exe %t.out.exe 2>&1 | FileCheck %s 8 9# CHECK: error: '{{.*}}{{/|\\}}debug-dir-unmapped.test.tmp.out.exe': debug directory payload not found 10 11--- !COFF 12OptionalHeader: 13 AddressOfEntryPoint: 4096 14 ImageBase: 1073741824 15 SectionAlignment: 4096 16 FileAlignment: 512 17 MajorOperatingSystemVersion: 6 18 MinorOperatingSystemVersion: 0 19 MajorImageVersion: 0 20 MinorImageVersion: 0 21 MajorSubsystemVersion: 6 22 MinorSubsystemVersion: 0 23 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI 24 DLLCharacteristics: [ ] 25 SizeOfStackReserve: 1048576 26 SizeOfStackCommit: 4096 27 SizeOfHeapReserve: 1048576 28 SizeOfHeapCommit: 4096 29 Debug: 30 RelativeVirtualAddress: 12288 31 Size: 28 32header: 33 Machine: IMAGE_FILE_MACHINE_AMD64 34 Characteristics: [ ] 35sections: 36 - Name: .text 37 Characteristics: [ ] 38 VirtualAddress: 4096 39 VirtualSize: 16 40 SectionData: C3909090909090909090909090909090 41 - Name: .rdata 42 Characteristics: [ ] 43 VirtualAddress: 8192 44 VirtualSize: 32 45 SectionData: FFFFFFFF00000000FFFFFFFF00000000 46 - Name: .buildid 47 Characteristics: [ ] 48 VirtualAddress: 12288 49 VirtualSize: 28 50 SectionData: 0000000042EE405C00000000020000001900000000000000E4070000 51symbols: 52... 53