1# RUN: yaml2obj %s -o %t.obj 2 3# RUN: echo fn1 > %t.order 4# RUN: echo fn2 >> %t.order 5 6# RUN: lld-link -safeseh:no -entry:fn1 -subsystem:console -opt:noref %t.obj \ 7# RUN: -lldmap:- -out:%t.exe -order:@%t.order | FileCheck %s 8# CHECK: fn1 9# CHECK: fn2 10 11# RUN: lld-link -safeseh:no -entry:fn1 -subsystem:console -opt:noref %t.obj \ 12# RUN: -lldmap:- -out:%t.exe | FileCheck -check-prefix=DEFAULT %s 13# DEFAULT: fn2 14# DEFAULT: fn1 15 16--- !COFF 17header: 18 Machine: IMAGE_FILE_MACHINE_I386 19 Characteristics: [ ] 20sections: 21 - Name: '.text' 22 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ] 23 Alignment: 16 24 SectionData: CC 25 - Name: '.text' 26 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ] 27 Alignment: 16 28 SectionData: CC 29symbols: 30 - Name: '.text' 31 Value: 0 32 SectionNumber: 1 33 SimpleType: IMAGE_SYM_TYPE_NULL 34 ComplexType: IMAGE_SYM_DTYPE_NULL 35 StorageClass: IMAGE_SYM_CLASS_STATIC 36 SectionDefinition: 37 Length: 1 38 NumberOfRelocations: 0 39 NumberOfLinenumbers: 0 40 CheckSum: 0 41 Number: 0 42 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES 43 - Name: '.text' 44 Value: 0 45 SectionNumber: 2 46 SimpleType: IMAGE_SYM_TYPE_NULL 47 ComplexType: IMAGE_SYM_DTYPE_NULL 48 StorageClass: IMAGE_SYM_CLASS_STATIC 49 SectionDefinition: 50 Length: 1 51 NumberOfRelocations: 0 52 NumberOfLinenumbers: 0 53 CheckSum: 0 54 Number: 0 55 Selection: IMAGE_COMDAT_SELECT_NODUPLICATES 56 - Name: _fn2 57 Value: 0 58 SectionNumber: 1 59 SimpleType: IMAGE_SYM_TYPE_NULL 60 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 61 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 62 - Name: _fn1 63 Value: 0 64 SectionNumber: 2 65 SimpleType: IMAGE_SYM_TYPE_NULL 66 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 67 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 68... 69 70