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. Then the unstripped version is stripped to keep only debug info to
4 # cause its crc to change. In this case the debug info shall not be loaded.
6 # RUN: yaml2obj %s -o %t
7 # RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t %t %t.stripped
8 # RUN: llvm-strip --only-keep-debug %t
9 # RUN: lldb-test object-file %t.stripped | FileCheck %s
11 # CHECK-NOT: Name: .debug_info
12 # CHECK-NOT: Type: dwarf-info
16 AddressOfEntryPoint: 5152
18 SectionAlignment: 4096
20 MajorOperatingSystemVersion: 6
21 MinorOperatingSystemVersion: 0
24 MajorSubsystemVersion: 6
25 MinorSubsystemVersion: 0
26 Subsystem: IMAGE_SUBSYSTEM_WINDOWS_CUI
27 DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
28 SizeOfStackReserve: 1048576
29 SizeOfStackCommit: 4096
30 SizeOfHeapReserve: 1048576
31 SizeOfHeapCommit: 4096
33 Machine: IMAGE_FILE_MACHINE_AMD64
34 Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
37 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
40 SectionData: DEADBEEFBAADF00D
42 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
45 SectionData: DEADBEEFBAADF00D
47 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
50 SectionData: DEADBEEFBAADF00D