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