Bump version to 19.1.0 (final)
[llvm-project.git] / lldb / test / Shell / ObjectFile / PECOFF / dwarf-gnu-debuglink.yaml
blob9bd678823b80402d211d9de89871c3a3e377eb36
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
12 --- !COFF
13 OptionalHeader:
14   AddressOfEntryPoint: 5152
15   ImageBase:       5368709120
16   SectionAlignment: 4096
17   FileAlignment:   512
18   MajorOperatingSystemVersion: 6
19   MinorOperatingSystemVersion: 0
20   MajorImageVersion: 0
21   MinorImageVersion: 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
30 header:
31   Machine:         IMAGE_FILE_MACHINE_AMD64
32   Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
33 sections:
34   - Name:            .text
35     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
36     VirtualAddress:  4096
37     VirtualSize:     64
38     SectionData:     DEADBEEFBAADF00D
39   - Name:            .data
40     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
41     VirtualAddress:  8192
42     VirtualSize:     64
43     SectionData:     DEADBEEFBAADF00D
44   - Name:            .debug_info
45     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
46     VirtualAddress:  16384
47     VirtualSize:     64
48     SectionData:     DEADBEEFBAADF00D
49 symbols:         []
50 ...