1# RUN: yaml2obj %s -o %t.obj 2# RUN: lld-link /out:%t.exe /entry:main %t.obj 2>&1 | FileCheck %s --check-prefix=WARN 3# RUN: llvm-readobj --sections %t.exe | FileCheck %s 4# RUN: lld-link /debug /out:%t2.exe /entry:main %t.obj 2>&1 | FileCheck %s --check-prefix=WARN 5# RUN: llvm-readobj --sections %t2.exe | FileCheck %s 6# 7# No warnings in mingw mode or with ignore flag. 8# RUN: lld-link /out:%t.exe /entry:main %t.obj /ignore:longsections 2>&1 | FileCheck %s --check-prefix=IGNORE --allow-empty 9# RUN: lld-link /out:%t.exe /entry:main %t.obj -lldmingw 2>&1 | FileCheck %s --check-prefix=IGNORE --allow-empty 10# RUN: lld-link /out:%t.exe /entry:main %t.obj -debug:dwarf 2>&1 | FileCheck %s --check-prefix=IGNORE --allow-empty 11 12# WARN: warning: section name .data_long_section_name is longer than 8 characters and will use a non-standard string table 13# WARN: warning: section name .text_long_section_name is longer than 8 characters and will use a non-standard string table 14 15# IGNORE-NOT: warning: 16 17# CHECK: Name: .eh_fram ( 18# CHECK: Name: .data_long_section_name 19# CHECK: Name: .text_long_section_name 20 21--- !COFF 22header: 23 Machine: IMAGE_FILE_MACHINE_AMD64 24 Characteristics: [ ] 25sections: 26 - Name: .text_long_section_name 27 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_DISCARDABLE ] 28 Alignment: 4 29 SectionData: B82A000000C3 30 - Name: .data_long_section_name 31 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE, IMAGE_SCN_MEM_DISCARDABLE ] 32 Alignment: 4 33 SectionData: "00" 34 - Name: .eh_frame 35 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ] 36 Alignment: 4 37 SectionData: "00" 38symbols: 39 - Name: "@comp.id" 40 Value: 10394907 41 SectionNumber: 65535 42 SimpleType: IMAGE_SYM_TYPE_NULL 43 ComplexType: IMAGE_SYM_DTYPE_NULL 44 StorageClass: IMAGE_SYM_CLASS_STATIC 45 - Name: .text_long_section_name 46 Value: 0 47 SectionNumber: 1 48 SimpleType: IMAGE_SYM_TYPE_NULL 49 ComplexType: IMAGE_SYM_DTYPE_NULL 50 StorageClass: IMAGE_SYM_CLASS_STATIC 51 SectionDefinition: 52 Length: 6 53 NumberOfRelocations: 0 54 NumberOfLinenumbers: 0 55 CheckSum: 0 56 Number: 0 57 - Name: .data_long_section_name 58 Value: 0 59 SectionNumber: 2 60 SimpleType: IMAGE_SYM_TYPE_NULL 61 ComplexType: IMAGE_SYM_DTYPE_NULL 62 StorageClass: IMAGE_SYM_CLASS_STATIC 63 SectionDefinition: 64 Length: 0 65 NumberOfRelocations: 0 66 NumberOfLinenumbers: 0 67 CheckSum: 0 68 Number: 0 69 - Name: .eh_frame 70 Value: 0 71 SectionNumber: 3 72 SimpleType: IMAGE_SYM_TYPE_NULL 73 ComplexType: IMAGE_SYM_DTYPE_NULL 74 StorageClass: IMAGE_SYM_CLASS_STATIC 75 SectionDefinition: 76 Length: 0 77 NumberOfRelocations: 0 78 NumberOfLinenumbers: 0 79 CheckSum: 0 80 Number: 0 81 - Name: main 82 Value: 0 83 SectionNumber: 1 84 SimpleType: IMAGE_SYM_TYPE_NULL 85 ComplexType: IMAGE_SYM_DTYPE_NULL 86 StorageClass: IMAGE_SYM_CLASS_EXTERNAL 87... 88