1 # This test produces a stripped version of the object file and adds a
2 # gnu-debuglink section to it linking to the unstripped version of the object
3 # file. The debug info shall be loaded from the gnu-debuglink reference.
5 # This test is added to check that LocateExecutableSymbolFile can handle
6 # ObjectFilePECOFF::GetModuleSpecifications returning two different module
7 # specs for MachineX86 -- "i386-pc-windows" and "i686-pc-windows".
9 # RUN: yaml2obj %s -o %t
10 # RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t %t %t.stripped
11 # RUN: lldb-test object-file %t.stripped | FileCheck %s
13 # CHECK: Name: .debug_info
14 # CHECK-NEXT: Type: dwarf-info
18 AddressOfEntryPoint: 4480
20 SectionAlignment: 4096
22 MajorOperatingSystemVersion: 6
23 MinorOperatingSystemVersion: 0
26 MajorSubsystemVersion: 6
27 MinorSubsystemVersion: 0
28 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
29 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
30 SizeOfStackReserve: 1048576
31 SizeOfStackCommit: 4096
32 SizeOfHeapReserve: 1048576
33 SizeOfHeapCommit: 4096
35 Machine: IMAGE_FILE_MACHINE_I386
36 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_32BIT_MACHINE ]
39 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
42 SectionData: DEADBEEFBAADF00D
44 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
47 SectionData: DEADBEEFBAADF00D
49 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
52 SectionData: DEADBEEFBAADF00D