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 # RUN: yaml2obj %s -o %t
6 # RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t %t %t.stripped
7 # RUN: lldb-test object-file %t.stripped | FileCheck %s
9 # CHECK: Name: .debug_info
10 # CHECK-NEXT: Type: dwarf-info
14 AddressOfEntryPoint: 5152
16 SectionAlignment: 4096
18 MajorOperatingSystemVersion: 6
19 MinorOperatingSystemVersion: 0
22 MajorSubsystemVersion: 6
23 MinorSubsystemVersion: 0
24 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
25 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
26 SizeOfStackReserve: 1048576
27 SizeOfStackCommit: 4096
28 SizeOfHeapReserve: 1048576
29 SizeOfHeapCommit: 4096
31 Machine: IMAGE_FILE_MACHINE_AMD64
32 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
35 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
38 SectionData: DEADBEEFBAADF00D
40 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
43 SectionData: DEADBEEFBAADF00D
45 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
48 SectionData: DEADBEEFBAADF00D