brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · c18a73a Raw
69 lines · plain
1## Check that we successfully patch the PointerToRawData field in more than2## one debug directory entry.3 4# RUN: yaml2obj %s -o %t.in.exe5 6# RUN: llvm-readobj --coff-debug-directory %t.in.exe | FileCheck %s --check-prefixes=DEBUG-DIRS,DEBUG-DIRS-PRE7# RUN: llvm-readobj --sections %t.in.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-PRE8# RUN: llvm-objcopy --remove-section .rdata %t.in.exe %t.out.exe9# RUN: llvm-readobj --coff-debug-directory %t.out.exe | FileCheck %s --check-prefixes=DEBUG-DIRS,DEBUG-DIRS-POST10# RUN: llvm-readobj --sections %t.out.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-POST11 12# DEBUG-DIRS:               AddressOfRawData: 0x303813# DEBUG-DIRS-PRE-NEXT:      PointerToRawData: 0x63814# DEBUG-DIRS-POST-NEXT:     PointerToRawData: 0x43815 16# DEBUG-DIRS:               AddressOfRawData: 0x305117# DEBUG-DIRS-PRE-NEXT:      PointerToRawData: 0x65118# DEBUG-DIRS-POST-NEXT:     PointerToRawData: 0x45119 20# SECTIONS:           Name: .buildid21# SECTIONS-NEXT:      VirtualSize:22# SECTIONS-NEXT:      VirtualAddress:23# SECTIONS-NEXT:      RawDataSize:24# SECTIONS-PRE-NEXT:  PointerToRawData: 0x60025# SECTIONS-POST-NEXT: PointerToRawData: 0x40026 27--- !COFF28OptionalHeader:29  AddressOfEntryPoint: 409630  ImageBase:       536870912031  SectionAlignment: 409632  FileAlignment:   51233  MajorOperatingSystemVersion: 634  MinorOperatingSystemVersion: 035  MajorImageVersion: 036  MinorImageVersion: 037  MajorSubsystemVersion: 638  MinorSubsystemVersion: 039  Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI40  DLLCharacteristics: [  ]41  SizeOfStackReserve: 104857642  SizeOfStackCommit: 409643  SizeOfHeapReserve: 104857644  SizeOfHeapCommit: 409645  Debug:46    RelativeVirtualAddress: 1228847    Size:            5648header:49  Machine:         IMAGE_FILE_MACHINE_AMD6450  Characteristics: [  ]51sections:52  - Name:            .text53    Characteristics: [  ]54    VirtualAddress:  409655    VirtualSize:     156    SectionData:     C357  - Name:            .rdata58    Characteristics: [  ]59    VirtualAddress:  819260    VirtualSize:     3261    SectionData:     FFFFFFFFFFFFFFFF0000000000000000FFFFFFFFFFFFFFFF000000000000000062  - Name:            .buildid63    Characteristics: [  ]64    VirtualAddress:  1228865    VirtualSize:     8566    SectionData:     0000000046C7A65E00000000020000001900000038300000380600000000000046C7A65E000000001400000004000000513000005106000052534453B3411F5F27A80D2A4C4C44205044422E01000000000100000067symbols:68...69