47 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: yaml2obj %p/Inputs/generic.yaml -o %t2.obj3 4# RUN: lld-link /out:%t.exe /debug /entry:main %t.obj %t2.obj /nodefaultlib5# RUN: llvm-pdbutil dump --types --type-data %t.pdb | FileCheck %s6# RUN: lld-link /out:%t.exe /debug:ghash /entry:main %t.obj %t2.obj /nodefaultlib7# RUN: llvm-pdbutil dump --types --type-data %t.pdb | FileCheck %s8 9# CHECK: 0000: 12000810 03000000 00000000 00000000 0000F2F110 11--- !COFF12header:13 Machine: IMAGE_FILE_MACHINE_AMD6414 Characteristics: []15sections:16 - Name: '.debug$T'17 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]18 Alignment: 119 # It is important to keep the 'SectionData' since the .OBJ is reconstructed from it,20 # and that triggers an alignment bug in the output .PDB.21 SectionData: '040000001000081003000000000000000000000000000600011200000000'22 Types:23 - Kind: LF_PROCEDURE24 Procedure:25 ReturnType: 326 CallConv: NearC27 Options: [ None ]28 ParameterCount: 029 ArgumentList: 030 - Kind: LF_ARGLIST31 ArgList:32 ArgIndices: [ ]33symbols:34 - Name: '.debug$T'35 Value: 036 SectionNumber: 137 SimpleType: IMAGE_SYM_TYPE_NULL38 ComplexType: IMAGE_SYM_DTYPE_NULL39 StorageClass: IMAGE_SYM_CLASS_STATIC40 SectionDefinition:41 Length: 3042 NumberOfRelocations: 043 NumberOfLinenumbers: 044 CheckSum: 045 Number: 046...47