1# RUN: sed s/FEAT_VALUE/1/ %s | yaml2obj > %t.obj 2# RUN: lld-link /out:%t.exe /subsystem:console /entry:main /safeseh %t.obj 3 4# RUN: sed s/FEAT_VALUE/0/ %s | yaml2obj > %t.obj 5# RUN: not lld-link /out:%t.exe /subsystem:console /entry:main \ 6# RUN: /safeseh %t.obj >& %t.log 7# RUN: FileCheck %s < %t.log 8 9# CHECK: /safeseh: {{.*}} is not compatible with SEH 10 11--- !COFF 12header: 13 Machine: IMAGE_FILE_MACHINE_I386 14 Characteristics: [ ] 15sections: 16 - Name: .text 17 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ] 18 Alignment: 1 19 SectionData: 0000000000000000 20symbols: 21 - Name: '@comp.id' 22 Value: 14766605 23 SectionNumber: 65535 24 SimpleType: IMAGE_SYM_TYPE_NULL 25 ComplexType: IMAGE_SYM_DTYPE_NULL 26 StorageClass: IMAGE_SYM_CLASS_STATIC 27 - Name: '@feat.00' 28 Value: FEAT_VALUE 29 SectionNumber: 65535 30 SimpleType: IMAGE_SYM_TYPE_NULL 31 ComplexType: IMAGE_SYM_DTYPE_NULL 32 StorageClass: IMAGE_SYM_CLASS_STATIC 33 - Name: .text 34 Value: 0 35 SectionNumber: 1 36 SimpleType: IMAGE_SYM_TYPE_NULL 37 ComplexType: IMAGE_SYM_DTYPE_NULL 38 StorageClass: IMAGE_SYM_CLASS_STATIC 39 SectionDefinition: 40 Length: 8 41 NumberOfRelocations: 0 42 NumberOfLinenumbers: 0 43 CheckSum: 0 44 Number: 0 45 - Name: _main 46 Value: 0 47 SectionNumber: 1 48 SimpleType: IMAGE_SYM_TYPE_NULL 49 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 50 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 51... 52