55 lines · yaml
1# This test produces a stripped version of the object file and adds a2# gnu-debuglink section to it linking to the unstripped version of the object3# file. The debug info shall be loaded from the gnu-debuglink reference.4#5# This test is added to check that LocateExecutableSymbolFile can handle6# ObjectFilePECOFF::GetModuleSpecifications returning two different module7# specs for MachineX86 -- "i386-pc-windows" and "i686-pc-windows".8 9# RUN: yaml2obj %s -o %t10# RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t %t %t.stripped11# RUN: lldb-test object-file %t.stripped | FileCheck %s12 13# CHECK: Name: .debug_info14# CHECK-NEXT: Type: dwarf-info15 16--- !COFF17OptionalHeader:18 AddressOfEntryPoint: 448019 ImageBase: 26843545620 SectionAlignment: 409621 FileAlignment: 51222 MajorOperatingSystemVersion: 623 MinorOperatingSystemVersion: 024 MajorImageVersion: 025 MinorImageVersion: 026 MajorSubsystemVersion: 627 MinorSubsystemVersion: 028 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI29 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]30 SizeOfStackReserve: 104857631 SizeOfStackCommit: 409632 SizeOfHeapReserve: 104857633 SizeOfHeapCommit: 409634header:35 Machine: IMAGE_FILE_MACHINE_I38636 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_32BIT_MACHINE ]37sections:38 - Name: .text39 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]40 VirtualAddress: 409641 VirtualSize: 6442 SectionData: DEADBEEFBAADF00D43 - Name: .data44 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]45 VirtualAddress: 819246 VirtualSize: 6447 SectionData: DEADBEEFBAADF00D48 - Name: .debug_info49 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]50 VirtualAddress: 1638451 VirtualSize: 6452 SectionData: DEADBEEFBAADF00D53symbols: []54...55