52 lines · plain
1# RUN: sed s/FEAT_VALUE/1/ %s | yaml2obj > %t.obj2# RUN: lld-link /out:%t.exe /subsystem:console /entry:main /safeseh %t.obj3 4# RUN: sed s/FEAT_VALUE/0/ %s | yaml2obj > %t.obj5# RUN: not lld-link /out:%t.exe /subsystem:console /entry:main \6# RUN: /safeseh %t.obj >& %t.log7# RUN: FileCheck %s < %t.log8 9# CHECK: /safeseh: {{.*}} is not compatible with SEH10 11--- !COFF12header:13 Machine: IMAGE_FILE_MACHINE_I38614 Characteristics: [ ]15sections:16 - Name: .text17 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]18 Alignment: 119 SectionData: 000000000000000020symbols:21 - Name: '@comp.id'22 Value: 1476660523 SectionNumber: 6553524 SimpleType: IMAGE_SYM_TYPE_NULL25 ComplexType: IMAGE_SYM_DTYPE_NULL26 StorageClass: IMAGE_SYM_CLASS_STATIC27 - Name: '@feat.00'28 Value: FEAT_VALUE29 SectionNumber: 6553530 SimpleType: IMAGE_SYM_TYPE_NULL31 ComplexType: IMAGE_SYM_DTYPE_NULL32 StorageClass: IMAGE_SYM_CLASS_STATIC33 - Name: .text34 Value: 035 SectionNumber: 136 SimpleType: IMAGE_SYM_TYPE_NULL37 ComplexType: IMAGE_SYM_DTYPE_NULL38 StorageClass: IMAGE_SYM_CLASS_STATIC39 SectionDefinition:40 Length: 841 NumberOfRelocations: 042 NumberOfLinenumbers: 043 CheckSum: 044 Number: 045 - Name: _main46 Value: 047 SectionNumber: 148 SimpleType: IMAGE_SYM_TYPE_NULL49 ComplexType: IMAGE_SYM_DTYPE_FUNCTION50 StorageClass: IMAGE_SYM_CLASS_EXTERNAL51...52