1 # This test has an S_GPROC32_ID symbol with an invalid type index. Make sure we
2 # keep the record, or we'll have unbalanced scopes, which is bad. This situation
3 # can arise when we can't find the type server PDB.
5 # RUN: yaml2obj %s -o %t.obj
6 # RUN: lld-link %t.obj -out:%t.exe -debug -pdb:%t.pdb -nodefaultlib -entry:main
7 # RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck %s
9 # CHECK: Mod 0000 | `{{.*}}pdb-invalid-func-type.yaml.tmp.obj`:
10 # CHECK: 4 | S_GPROC32 [size = 44] `main`
11 # CHECK: parent = 0, end = 80, addr = 0001:0000, code size = 3
12 # CHECK: 48 | S_FRAMEPROC [size = 32]
13 # CHECK: 80 | S_END [size = 4]
17 Machine: IMAGE_FILE_MACHINE_AMD64
21 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
31 # Corrupt function type!
40 BytesOfCalleeSavedRegisters: 0
41 OffsetOfExceptionHandler: 0
42 SectionIdOfExceptionHandler: 0
43 Flags: [ AsynchronousExceptionHandling, OptimizedForSpeed ]
52 - FileName: 'c:\src\llvm-project\build\t.c'
61 - FileName: 'c:\src\llvm-project\build\t.c'
63 Checksum: 270A878DCC1B845655B162F56C4F5020
66 - 'c:\src\llvm-project\build\t.c'
70 Type: IMAGE_REL_AMD64_SECREL
73 Type: IMAGE_REL_AMD64_SECTION
76 Type: IMAGE_REL_AMD64_SECREL
79 Type: IMAGE_REL_AMD64_SECTION
81 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
100 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
107 SimpleType: IMAGE_SYM_TYPE_NULL
108 ComplexType: IMAGE_SYM_DTYPE_NULL
109 StorageClass: IMAGE_SYM_CLASS_STATIC
112 NumberOfRelocations: 4
113 NumberOfLinenumbers: 0
119 SimpleType: IMAGE_SYM_TYPE_NULL
120 ComplexType: IMAGE_SYM_DTYPE_NULL
121 StorageClass: IMAGE_SYM_CLASS_STATIC
124 NumberOfRelocations: 0
125 NumberOfLinenumbers: 0
131 SimpleType: IMAGE_SYM_TYPE_NULL
132 ComplexType: IMAGE_SYM_DTYPE_NULL
133 StorageClass: IMAGE_SYM_CLASS_STATIC
136 NumberOfRelocations: 0
137 NumberOfLinenumbers: 0
143 SimpleType: IMAGE_SYM_TYPE_NULL
144 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
145 StorageClass: IMAGE_SYM_CLASS_EXTERNAL