| ## Check that we error out when trying to patch up debug directories that |
| ## point to data outside of the runtime mapped sections (as we don't try to |
| ## locate and copy such payloads from the padding areas of the input file). |
| # RUN: yaml2obj %s -o %t.in.exe |
| # RUN: not llvm-objcopy --remove-section .rdata %t.in.exe %t.out.exe 2>&1 | FileCheck %s |
| # CHECK: error: '{{.*}}{{/|\\}}debug-dir-unmapped.test.tmp.out.exe': debug directory payload not found |
| AddressOfEntryPoint: 4096 |
| MajorOperatingSystemVersion: 6 |
| MinorOperatingSystemVersion: 0 |
| Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI |
| SizeOfStackReserve: 1048576 |
| SizeOfHeapReserve: 1048576 |
| RelativeVirtualAddress: 12288 |
| Machine: IMAGE_FILE_MACHINE_AMD64 |
| SectionData: C3909090909090909090909090909090 |
| SectionData: FFFFFFFF00000000FFFFFFFF00000000 |
| SectionData: 0000000042EE405C00000000020000001900000000000000E4070000 |