1# RUN: yaml2obj %s -o %t1.obj 2# RUN: yaml2obj %s -o %t2.obj 3# RUN: lld-link /out:%t.exe /subsystem:console /entry:main %t1.obj %t2.obj 4# RUN: llvm-objdump -s %t.exe | FileCheck %s 5 6# CHECK: Contents of section .rdata: 7# CHECK: 1000 00200000 8 9--- !COFF 10header: 11 Machine: IMAGE_FILE_MACHINE_I386 12 Characteristics: [ ] 13sections: 14 - Name: .text 15 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ, IMAGE_SCN_LNK_COMDAT ] 16 Alignment: 1 17 SectionData: 0000000000000000 18 - Name: .sxdata 19 Characteristics: [ IMAGE_SCN_LNK_INFO ] 20 Alignment: 4 21 SectionData: 02000000 22symbols: 23 - Name: '@comp.id' 24 Value: 14766605 25 SectionNumber: 65535 26 SimpleType: IMAGE_SYM_TYPE_NULL 27 ComplexType: IMAGE_SYM_DTYPE_NULL 28 StorageClass: IMAGE_SYM_CLASS_STATIC 29 - Name: '@feat.00' 30 Value: 2147484049 31 SectionNumber: 65535 32 SimpleType: IMAGE_SYM_TYPE_NULL 33 ComplexType: IMAGE_SYM_DTYPE_NULL 34 StorageClass: IMAGE_SYM_CLASS_STATIC 35 - Name: .text 36 Value: 0 37 SectionNumber: 1 38 SimpleType: IMAGE_SYM_TYPE_NULL 39 ComplexType: IMAGE_SYM_DTYPE_NULL 40 StorageClass: IMAGE_SYM_CLASS_STATIC 41 SectionDefinition: 42 Length: 4 43 NumberOfRelocations: 0 44 NumberOfLinenumbers: 0 45 CheckSum: 0 46 Number: 0 47 Selection: IMAGE_COMDAT_SELECT_ANY 48 - Name: .sxdata 49 Value: 0 50 SectionNumber: 2 51 SimpleType: IMAGE_SYM_TYPE_NULL 52 ComplexType: IMAGE_SYM_DTYPE_NULL 53 StorageClass: IMAGE_SYM_CLASS_STATIC 54 SectionDefinition: 55 Length: 8 56 NumberOfRelocations: 0 57 NumberOfLinenumbers: 0 58 CheckSum: 0 59 Number: 0 60 - Name: _main 61 Value: 0 62 SectionNumber: 1 63 SimpleType: IMAGE_SYM_TYPE_NULL 64 ComplexType: IMAGE_SYM_DTYPE_FUNCTION 65 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 66... 67