brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · c94668a Raw
82 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: lld-link /entry:foo /out:%t.exe /subsystem:console /include:bar \3# RUN:   /verbose %t.obj > %t.log 2>&14# RUN: FileCheck %s < %t.log5 6# CHECK: Selected foo7# CHECK:   Removed bar8 9--- !COFF10header:11  Machine:         IMAGE_FILE_MACHINE_AMD6412  Characteristics: []13sections:14  - Name:            '.text$mn'15    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]16    Alignment:       1617    SectionData:     4883EC28E8000000004883C428C318    Relocations:19      - VirtualAddress:  520        SymbolName:      foo21        Type:            IMAGE_REL_AMD64_REL3222      - VirtualAddress:  1023        SymbolName:      __ImageBase24        Type:            IMAGE_REL_AMD64_REL3225  - Name:            '.text$mn'26    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]27    Alignment:       1628    SectionData:     4883EC28E8000000004883C428C329    Relocations:30      - VirtualAddress:  531        SymbolName:      bar32        Type:            IMAGE_REL_AMD64_REL3233      - VirtualAddress:  1034        SymbolName:      __ImageBase35        Type:            IMAGE_REL_AMD64_REL3236symbols: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:          1445      NumberOfRelocations: 146      NumberOfLinenumbers: 047      CheckSum:        168275251348      Number:          049      Selection:       IMAGE_COMDAT_SELECT_NODUPLICATES50  - 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:          1458      NumberOfRelocations: 159      NumberOfLinenumbers: 060      CheckSum:        168275251361      Number:          062      Selection:       IMAGE_COMDAT_SELECT_NODUPLICATES63  - Name:            foo64    Value:           065    SectionNumber:   166    SimpleType:      IMAGE_SYM_TYPE_NULL67    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION68    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL69  - Name:            bar70    Value:           071    SectionNumber:   272    SimpleType:      IMAGE_SYM_TYPE_NULL73    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION74    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL75  - Name:            __ImageBase76    Value:           077    SectionNumber:   078    SimpleType:      IMAGE_SYM_TYPE_NULL79    ComplexType:     IMAGE_SYM_DTYPE_NULL80    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL81...82