brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · dd94497 Raw
76 lines · plain
1# RUN: yaml2obj %s -o %t.obj2 3# RUN: lld-link /out:%t.exe /entry:main %t.obj \4# RUN:   /verbose 2>&1 | FileCheck -check-prefix=REF %s5 6# /debug disables the /opt:ref default...7# RUN: lld-link /out:%t.exe /debug /entry:main %t.obj \8# RUN:   /verbose 2>&1 | FileCheck -check-prefix=NOREF %s9 10# ...unless /profile is passed as well.11# RUN: lld-link /out:%t.exe /profile /debug /entry:main %t.obj \12# RUN:   /verbose 2>&1 | FileCheck -check-prefix=REF %s13 14# RUN: lld-link /out:%t.exe /opt:ref /debug /entry:main %t.obj \15# RUN:   /verbose 2>&1 | FileCheck -check-prefix=REF %s16 17# RUN: lld-link /out:%t.exe /entry:main %t.obj \18# RUN:   /verbose /opt:noref /profile 2>&1 | FileCheck -check-prefix=NOREF %s19 20# REF:       Discarded unused21# NOREF-NOT: Discarded unused22 23--- !COFF24header:25  Machine:         IMAGE_FILE_MACHINE_AMD6426  Characteristics: []27sections:28  - Name:            '.text$mn'29    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]30    Alignment:       431    SectionData:     B82A000000C332  - Name:            '.text$mn'33    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]34    Alignment:       435    SectionData:     B82A000000C336symbols:37  - Name:            '.text$mn'38    Value:           039    SectionNumber:   140    SimpleType:      IMAGE_SYM_TYPE_NULL41    ComplexType:     IMAGE_SYM_DTYPE_NULL42    StorageClass:    IMAGE_SYM_CLASS_STATIC43    SectionDefinition:44      Length:          645      NumberOfRelocations: 046      NumberOfLinenumbers: 047      CheckSum:        048      Number:          049      Selection:       IMAGE_COMDAT_SELECT_ANY50  - Name:            '.text$mn'51    Value:           052    SectionNumber:   253    SimpleType:      IMAGE_SYM_TYPE_NULL54    ComplexType:     IMAGE_SYM_DTYPE_NULL55    StorageClass:    IMAGE_SYM_CLASS_STATIC56    SectionDefinition:57      Length:          658      NumberOfRelocations: 059      NumberOfLinenumbers: 060      CheckSum:        061      Number:          062      Selection:       IMAGE_COMDAT_SELECT_ANY63  - Name:            main64    Value:           065    SectionNumber:   166    SimpleType:      IMAGE_SYM_TYPE_NULL67    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION68    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL69  - Name:            unused70    Value:           071    SectionNumber:   272    SimpleType:      IMAGE_SYM_TYPE_NULL73    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION74    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL75...76