brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 29a0895 Raw
53 lines · plain
1## Check that we error out when trying to patch up debug directories that2## point to data outside of the runtime mapped sections (as we don't try to3## locate and copy such payloads from the padding areas of the input file).4 5# RUN: yaml2obj %s -o %t.in.exe6 7# RUN: not llvm-objcopy --remove-section .rdata %t.in.exe %t.out.exe 2>&1 | FileCheck %s8 9# CHECK: error: '{{.*}}{{/|\\}}debug-dir-unmapped.test.tmp.out.exe': debug directory payload not found10 11--- !COFF12OptionalHeader:13  AddressOfEntryPoint: 409614  ImageBase:       107374182415  SectionAlignment: 409616  FileAlignment:   51217  MajorOperatingSystemVersion: 618  MinorOperatingSystemVersion: 019  MajorImageVersion: 020  MinorImageVersion: 021  MajorSubsystemVersion: 622  MinorSubsystemVersion: 023  Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI24  DLLCharacteristics: [  ]25  SizeOfStackReserve: 104857626  SizeOfStackCommit: 409627  SizeOfHeapReserve: 104857628  SizeOfHeapCommit: 409629  Debug:30    RelativeVirtualAddress: 1228831    Size:            2832header:33  Machine:         IMAGE_FILE_MACHINE_AMD6434  Characteristics: [  ]35sections:36  - Name:            .text37    Characteristics: [  ]38    VirtualAddress:  409639    VirtualSize:     1640    SectionData:     C390909090909090909090909090909041  - Name:            .rdata42    Characteristics: [  ]43    VirtualAddress:  819244    VirtualSize:     3245    SectionData:     FFFFFFFF00000000FFFFFFFF0000000046  - Name:            .buildid47    Characteristics: [  ]48    VirtualAddress:  1228849    VirtualSize:     2850    SectionData:     0000000042EE405C00000000020000001900000000000000E407000051symbols:52...53