3 # RUN: yaml2obj %s -o %t.obj
4 # RUN: lld-link %t.obj -out:%t.exe -debug -pdb:%t.pdb -nodefaultlib -entry:main 2>&1 | FileCheck %s
7 # CHECK: warning: Cannot use debug info for {{.*}}.obj
8 # CHECK-NEXT: The PDB file is corrupt. MSF superblock is missing
12 Machine: IMAGE_FILE_MACHINE_AMD64
16 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
34 BytesOfCalleeSavedRegisters: 0
35 OffsetOfExceptionHandler: 0
36 SectionIdOfExceptionHandler: 0
37 Flags: [ AsynchronousExceptionHandling, OptimizedForSpeed ]
46 - FileName: 'c:\src\llvm-project\build\t.c'
55 - FileName: 'c:\src\llvm-project\build\t.c'
57 Checksum: 270A878DCC1B845655B162F56C4F5020
60 - 'c:\src\llvm-project\build\t.c'
64 Type: IMAGE_REL_AMD64_SECREL
67 Type: IMAGE_REL_AMD64_SECTION
70 Type: IMAGE_REL_AMD64_SECREL
73 Type: IMAGE_REL_AMD64_SECTION
75 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
78 - Kind: LF_TYPESERVER2
80 Guid: '{1B19DF01-BF22-426B-96CE-5258B8329FE5}'
82 Name: 'bad-block-size.pdb'
84 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
91 SimpleType: IMAGE_SYM_TYPE_NULL
92 ComplexType: IMAGE_SYM_DTYPE_NULL
93 StorageClass: IMAGE_SYM_CLASS_STATIC
96 NumberOfRelocations: 4
97 NumberOfLinenumbers: 0
103 SimpleType: IMAGE_SYM_TYPE_NULL
104 ComplexType: IMAGE_SYM_DTYPE_NULL
105 StorageClass: IMAGE_SYM_CLASS_STATIC
108 NumberOfRelocations: 0
109 NumberOfLinenumbers: 0
115 SimpleType: IMAGE_SYM_TYPE_NULL
116 ComplexType: IMAGE_SYM_DTYPE_NULL
117 StorageClass: IMAGE_SYM_CLASS_STATIC
120 NumberOfRelocations: 0
121 NumberOfLinenumbers: 0
127 SimpleType: IMAGE_SYM_TYPE_NULL
128 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
129 StorageClass: IMAGE_SYM_CLASS_EXTERNAL