brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 2c0f063 Raw
71 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: lld-link /out:%t.exe /subsystem:console /entry:main %t.obj3# RUN: llvm-objdump -s %t.exe | FileCheck %s4 5# CHECK: Contents of section .rdata:6# CHECK:  1000 00200000 022000007 8--- !COFF9header:10  Machine:         IMAGE_FILE_MACHINE_I38611  Characteristics: [  ]12sections:13  - Name:            .text14    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]15    Alignment:       116    SectionData:     000000000000000017  - Name:            .sxdata18    Characteristics: [ IMAGE_SCN_LNK_INFO ]19    Alignment:       420    SectionData:     060000000700000021symbols:22  - Name:            '@comp.id'23    Value:           1476660524    SectionNumber:   6553525    SimpleType:      IMAGE_SYM_TYPE_NULL26    ComplexType:     IMAGE_SYM_DTYPE_NULL27    StorageClass:    IMAGE_SYM_CLASS_STATIC28  - Name:            '@feat.00'29    Value:           214748404930    SectionNumber:   6553531    SimpleType:      IMAGE_SYM_TYPE_NULL32    ComplexType:     IMAGE_SYM_DTYPE_NULL33    StorageClass:    IMAGE_SYM_CLASS_STATIC34  - Name:            .text35    Value:           036    SectionNumber:   137    SimpleType:      IMAGE_SYM_TYPE_NULL38    ComplexType:     IMAGE_SYM_DTYPE_NULL39    StorageClass:    IMAGE_SYM_CLASS_STATIC40    SectionDefinition:41      Length:          842      NumberOfRelocations: 043      NumberOfLinenumbers: 044      CheckSum:        045      Number:          046  - Name:            .sxdata47    Value:           048    SectionNumber:   249    SimpleType:      IMAGE_SYM_TYPE_NULL50    ComplexType:     IMAGE_SYM_DTYPE_NULL51    StorageClass:    IMAGE_SYM_CLASS_STATIC52    SectionDefinition:53      Length:          854      NumberOfRelocations: 055      NumberOfLinenumbers: 056      CheckSum:        057      Number:          058  - Name:            _main59    Value:           060    SectionNumber:   161    SimpleType:      IMAGE_SYM_TYPE_NULL62    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION63    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL64  - Name:            _foo65    Value:           266    SectionNumber:   167    SimpleType:      IMAGE_SYM_TYPE_NULL68    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION69    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL70...71