brintos

brintos / llvm-project-archived public Read only

0
0
Text · 12.6 KiB · 30cad39 Raw
360 lines · plain
1# RUN: yaml2obj %s -o %t.obj2# RUN: lld-link /debug /out:%t.exe /entry:main %t.obj3# RUN: llvm-readobj --sections %t.exe | FileCheck %s4# RUN: lld-link /debug:dwarf /out:%t.exe /entry:main %t.obj5# RUN: llvm-readobj --sections %t.exe | FileCheck %s6# RUN: lld-link /out:%t.exe /entry:main %t.obj7# RUN: llvm-readobj --sections %t.exe | FileCheck -check-prefix=NODEBUG %s8# RUN: lld-link /debug:symtab /out:%t.exe /entry:main %t.obj9# RUN: llvm-readobj --sections %t.exe | FileCheck -check-prefix=NODEBUG %s10# RUN: lld-link /debug:full,nodwarf /out:%t.exe /entry:main %t.obj11# RUN: llvm-readobj --sections %t.exe | FileCheck -check-prefix=NODEBUG %s12# RUN: lld-link /debug:full /debug:nodwarf /out:%t.exe /entry:main %t.obj13# RUN: llvm-readobj --sections %t.exe | FileCheck -check-prefix=NODEBUG %s14 15# CHECK: Name: .text16# CHECK: Name: .reloc17# CHECK: Name: .rmeta18# CHECK: Name: .debug_abbrev19# CHECK: Name: .debug_info20# CHECK: Name: .debug_line21# CHECK: Name: .debug_pubnames22# CHECK: Name: .debug_pubtypes23 24# NODEBUG: Name: .text25# NODEBUG: Name: .reloc26# NODEBUG: Name: .rmeta27# NODEBUG-NOT: Name: .debug_abbrev28# NODEBUG-NOT: Name: .debug_info29# NODEBUG-NOT: Name: .debug_line30# NODEBUG-NOT: Name: .debug_pubnames31# NODEBUG-NOT: Name: .debug_pubtypes32 33--- !COFF34header:35  Machine:         IMAGE_FILE_MACHINE_I38636  Characteristics: [  ]37sections:38  - Name:            .text39    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]40    Alignment:       1641    SectionData:     508D0500000000C70424000000005AC342    Relocations:43      - VirtualAddress:  344        SymbolName:      '?x@@3HA'45        Type:            IMAGE_REL_I386_DIR3246  - Name:            .data47    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]48    Alignment:       449    SectionData:     ''50  - Name:            .bss51    Characteristics: [ IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]52    Alignment:       453    SectionData:     ''54    SizeOfRawData:   455  - Name:            '.debug$S'56    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]57    Alignment:       158    Subsections:59      - !Symbols60        Records:61          - Kind:            S_GPROC32_ID62            ProcSym:63              PtrParent:       064              PtrEnd:          065              PtrNext:         066              CodeSize:        1667              DbgStart:        068              DbgEnd:          069              FunctionType:    070              Segment:         071              Flags:           [  ]72              DisplayName:     main73          - Kind:            S_PROC_ID_END74            ScopeEndSym:75      - !Lines76        CodeSize:        1677        Flags:           [ HasColumnInfo ]78        RelocOffset:     079        RelocSegment:    080        Blocks:81          - FileName:        '\usr\local\google\home\majnemer\llvm\src\tools\lld\<stdin>'82            Lines:83              - Offset:          084                LineStart:       185                IsStatement:     false86                EndDelta:        087            Columns:88              - StartColumn:     089                EndColumn:       090      - !FileChecksums91        Checksums:92          - FileName:        '\usr\local\google\home\majnemer\llvm\src\tools\lld\<stdin>'93            Kind:            None94            Checksum:        ''95      - !StringTable96        Strings:97          - '\usr\local\google\home\majnemer\llvm\src\tools\lld\<stdin>'98    Relocations:99      - VirtualAddress:  44100        SymbolName:      _main101        Type:            IMAGE_REL_I386_SECREL102      - VirtualAddress:  48103        SymbolName:      _main104        Type:            IMAGE_REL_I386_SECTION105      - VirtualAddress:  68106        SymbolName:      _main107        Type:            IMAGE_REL_I386_SECREL108      - VirtualAddress:  72109        SymbolName:      _main110        Type:            IMAGE_REL_I386_SECTION111  - Name:            .debug_str112    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]113    Alignment:       1114    SectionData:     ''115  - Name:            .debug_loc116    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]117    Alignment:       1118    SectionData:     ''119  - Name:            .debug_abbrev120    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]121    Alignment:       1122    SectionData:     011101250E1305030E10171B0E110112060000023400030E49133F193A0B3B0B02186E0E0000032400030E3E0B0B0B0000042E0011011206E77F194018030E3A0B3B0B49133F19000000123  - Name:            .debug_info124    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]125    Alignment:       1126    SectionData:     54000000040000000000040100000000040037000000000000003F000000000000001000000002720000003B0000000101050300000000780000000374000000050404000000001000000001548000000001013B00000000127    Relocations:128      - VirtualAddress:  6129        SymbolName:      .debug_abbrev130        Type:            IMAGE_REL_I386_SECREL131      - VirtualAddress:  12132        SymbolName:      .debug_str133        Type:            IMAGE_REL_I386_SECREL134      - VirtualAddress:  18135        SymbolName:      .debug_str136        Type:            IMAGE_REL_I386_SECREL137      - VirtualAddress:  22138        SymbolName:      .debug_line139        Type:            IMAGE_REL_I386_SECREL140      - VirtualAddress:  26141        SymbolName:      .debug_str142        Type:            IMAGE_REL_I386_SECREL143      - VirtualAddress:  30144        SymbolName:      .text145        Type:            IMAGE_REL_I386_DIR32146      - VirtualAddress:  39147        SymbolName:      .debug_str148        Type:            IMAGE_REL_I386_SECREL149      - VirtualAddress:  51150        SymbolName:      '?x@@3HA'151        Type:            IMAGE_REL_I386_DIR32152      - VirtualAddress:  55153        SymbolName:      .debug_str154        Type:            IMAGE_REL_I386_SECREL155      - VirtualAddress:  60156        SymbolName:      .debug_str157        Type:            IMAGE_REL_I386_SECREL158      - VirtualAddress:  67159        SymbolName:      .text160        Type:            IMAGE_REL_I386_DIR32161      - VirtualAddress:  77162        SymbolName:      .debug_str163        Type:            IMAGE_REL_I386_SECREL164  - Name:            .debug_ranges165    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]166    Alignment:       1167    SectionData:     ''168  - Name:            .debug_pubnames169    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]170    Alignment:       1171    SectionData:     1D00000002000000000058000000420000006D61696E0026000000780000000000172    Relocations:173      - VirtualAddress:  6174        SymbolName:      .debug_info175        Type:            IMAGE_REL_I386_SECREL176  - Name:            .debug_pubtypes177    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]178    Alignment:       1179    SectionData:     16000000020000000000580000003B000000696E740000000000180    Relocations:181      - VirtualAddress:  6182        SymbolName:      .debug_info183        Type:            IMAGE_REL_I386_SECREL184  - Name:            .debug_line185    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]186    Alignment:       1187    SectionData:     3300000002001E0000000101FB0E0D000101010100000001000001003C737464696E3E000000000000050200000000010AD60202000101188    Relocations:189      - VirtualAddress:  43190        SymbolName:      .text191        Type:            IMAGE_REL_I386_DIR32192  - Name:            .rmeta193    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]194    Alignment:       1195    SectionData:     00112233196symbols:197  - Name:            .text198    Value:           0199    SectionNumber:   1200    SimpleType:      IMAGE_SYM_TYPE_NULL201    ComplexType:     IMAGE_SYM_DTYPE_NULL202    StorageClass:    IMAGE_SYM_CLASS_STATIC203    SectionDefinition:204      Length:          16205      NumberOfRelocations: 1206      NumberOfLinenumbers: 0207      CheckSum:        0208      Number:          1209  - Name:            .data210    Value:           0211    SectionNumber:   2212    SimpleType:      IMAGE_SYM_TYPE_NULL213    ComplexType:     IMAGE_SYM_DTYPE_NULL214    StorageClass:    IMAGE_SYM_CLASS_STATIC215    SectionDefinition:216      Length:          0217      NumberOfRelocations: 0218      NumberOfLinenumbers: 0219      CheckSum:        0220      Number:          2221  - Name:            .bss222    Value:           0223    SectionNumber:   3224    SimpleType:      IMAGE_SYM_TYPE_NULL225    ComplexType:     IMAGE_SYM_DTYPE_NULL226    StorageClass:    IMAGE_SYM_CLASS_STATIC227    SectionDefinition:228      Length:          4229      NumberOfRelocations: 0230      NumberOfLinenumbers: 0231      CheckSum:        0232      Number:          3233  - Name:            '.debug$S'234    Value:           0235    SectionNumber:   4236    SimpleType:      IMAGE_SYM_TYPE_NULL237    ComplexType:     IMAGE_SYM_DTYPE_NULL238    StorageClass:    IMAGE_SYM_CLASS_STATIC239    SectionDefinition:240      Length:          188241      NumberOfRelocations: 4242      NumberOfLinenumbers: 0243      CheckSum:        0244      Number:          4245  - Name:            .debug_str246    Value:           0247    SectionNumber:   5248    SimpleType:      IMAGE_SYM_TYPE_NULL249    ComplexType:     IMAGE_SYM_DTYPE_NULL250    StorageClass:    IMAGE_SYM_CLASS_STATIC251    SectionDefinition:252      Length:          133253      NumberOfRelocations: 0254      NumberOfLinenumbers: 0255      CheckSum:        0256      Number:          5257  - Name:            .debug_loc258    Value:           0259    SectionNumber:   6260    SimpleType:      IMAGE_SYM_TYPE_NULL261    ComplexType:     IMAGE_SYM_DTYPE_NULL262    StorageClass:    IMAGE_SYM_CLASS_STATIC263    SectionDefinition:264      Length:          0265      NumberOfRelocations: 0266      NumberOfLinenumbers: 0267      CheckSum:        0268      Number:          6269  - Name:            .debug_abbrev270    Value:           0271    SectionNumber:   7272    SimpleType:      IMAGE_SYM_TYPE_NULL273    ComplexType:     IMAGE_SYM_DTYPE_NULL274    StorageClass:    IMAGE_SYM_CLASS_STATIC275    SectionDefinition:276      Length:          74277      NumberOfRelocations: 0278      NumberOfLinenumbers: 0279      CheckSum:        0280      Number:          7281  - Name:            .debug_info282    Value:           0283    SectionNumber:   8284    SimpleType:      IMAGE_SYM_TYPE_NULL285    ComplexType:     IMAGE_SYM_DTYPE_NULL286    StorageClass:    IMAGE_SYM_CLASS_STATIC287    SectionDefinition:288      Length:          88289      NumberOfRelocations: 12290      NumberOfLinenumbers: 0291      CheckSum:        0292      Number:          8293  - Name:            .debug_ranges294    Value:           0295    SectionNumber:   9296    SimpleType:      IMAGE_SYM_TYPE_NULL297    ComplexType:     IMAGE_SYM_DTYPE_NULL298    StorageClass:    IMAGE_SYM_CLASS_STATIC299    SectionDefinition:300      Length:          0301      NumberOfRelocations: 0302      NumberOfLinenumbers: 0303      CheckSum:        0304      Number:          9305  - Name:            .debug_pubnames306    Value:           0307    SectionNumber:   10308    SimpleType:      IMAGE_SYM_TYPE_NULL309    ComplexType:     IMAGE_SYM_DTYPE_NULL310    StorageClass:    IMAGE_SYM_CLASS_STATIC311    SectionDefinition:312      Length:          33313      NumberOfRelocations: 1314      NumberOfLinenumbers: 0315      CheckSum:        0316      Number:          10317  - Name:            .debug_pubtypes318    Value:           0319    SectionNumber:   11320    SimpleType:      IMAGE_SYM_TYPE_NULL321    ComplexType:     IMAGE_SYM_DTYPE_NULL322    StorageClass:    IMAGE_SYM_CLASS_STATIC323    SectionDefinition:324      Length:          26325      NumberOfRelocations: 1326      NumberOfLinenumbers: 0327      CheckSum:        0328      Number:          11329  - Name:            .debug_line330    Value:           0331    SectionNumber:   12332    SimpleType:      IMAGE_SYM_TYPE_NULL333    ComplexType:     IMAGE_SYM_DTYPE_NULL334    StorageClass:    IMAGE_SYM_CLASS_STATIC335    SectionDefinition:336      Length:          55337      NumberOfRelocations: 1338      NumberOfLinenumbers: 0339      CheckSum:        0340      Number:          12341  - Name:            '@feat.00'342    Value:           1343    SectionNumber:   -1344    SimpleType:      IMAGE_SYM_TYPE_NULL345    ComplexType:     IMAGE_SYM_DTYPE_NULL346    StorageClass:    IMAGE_SYM_CLASS_STATIC347  - Name:            _main348    Value:           0349    SectionNumber:   1350    SimpleType:      IMAGE_SYM_TYPE_NULL351    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION352    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL353  - Name:            '?x@@3HA'354    Value:           0355    SectionNumber:   3356    SimpleType:      IMAGE_SYM_TYPE_NULL357    ComplexType:     IMAGE_SYM_DTYPE_NULL358    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL359...360