brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.9 KiB · 899c461 Raw
115 lines · yaml
1# RUN: yaml2obj %s -o - | not llvm-dwarfdump -verify - | FileCheck %s2 3# Verifying local type units. Local type units and compile units are identical4# except that the DWARF Unit offset for the type unit is specified using a5# DW_IDX_type_unit. This is a single test that tests that the type unit index6# in the DW_IDX_type_unit value is valid.7 8# CHECK: Verifying .debug_names...9# CHECK: error: Name Index @ 0x0: Entry @ 0x7f contains an invalid TU index (1).10# CHECK: error: Aggregated error counts:11# CHECK: error: Name Index entry contains invalid TU index occurred 1 time(s).12# Errors detected.13 14--- !ELF15FileHeader:16  Class:           ELFCLASS6417  Data:            ELFDATA2LSB18  Type:            ET_EXEC19  Machine:         EM_X86_6420ProgramHeaders:21  - Type:            PT_PHDR22    Flags:           [ PF_R ]23    VAddr:           0x20004024    Align:           0x825    Offset:          0x4026  - Type:            PT_LOAD27    Flags:           [ PF_R ]28    FirstSec:        .eh_frame29    LastSec:         .eh_frame30    VAddr:           0x20000031    Align:           0x100032    Offset:          0x033  - Type:            PT_LOAD34    Flags:           [ PF_X, PF_R ]35    FirstSec:        .text36    LastSec:         .text37    VAddr:           0x20116038    Align:           0x100039    Offset:          0x16040  - Type:            PT_GNU_STACK41    Flags:           [ PF_W, PF_R ]42    Align:           0x043    Offset:          0x044Sections:45  - Name:            .eh_frame46    Type:            SHT_PROGBITS47    Flags:           [ SHF_ALLOC ]48    Address:         0x20012049    AddressAlign:    0x850    Content:         1400000000000000017A5200017810011B0C0708900100001C0000001C000000201000000F00000000410E108602430D064A0C07080000000000000051  - Name:            .text52    Type:            SHT_PROGBITS53    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]54    Address:         0x20116055    AddressAlign:    0x1056    Content:         554889E5C745FC0000000031C05DC357  - Name:            .debug_info58    Type:            SHT_PROGBITS59    AddressAlign:    0x160    Content:         260000000500020800000000F23532F3E4235D67230000000121000000000008000000020506010001004800000005000108000000000300210001080000000000000002000F0000000800000004000F00000001560300033E0000000502917B05000442000000000604050407F23532F3E4235D670061  - Name:            .debug_abbrev62    Type:            SHT_PROGBITS63    AddressAlign:    0x164    Content:         0141011305101772170000021300360B03250B0B3A0B3B0B0000031101252513050325721710171B25111B120673170000042E01111B1206401803253A0B3B0B49133F190000053400021803253A0B3B0B4913000006240003253E0B0B0B00000713003C19692000000065  - Name:            .debug_str_offsets66    Type:            SHT_PROGBITS67    AddressAlign:    0x168    Content:         20000000050000000400000096000000A80000009F000000A400000000000000D100000069  - Name:            .debug_names70    Type:            SHT_PROGBITS71    AddressAlign:    0x472    Content:         900000000500000001000000010000000000000003000000030000001B000000080000004C4C564D303730302A000000000000000100000002000000030000008973880B6A7F9A7C3080880BD10000009F000000A400000000000000070000000D0000000113020B031304190000022E03130419000003240313041900000001012500000000022300000000033E00000000000073  - Name:            .comment74    Type:            SHT_PROGBITS75    Flags:           [ SHF_MERGE, SHF_STRINGS ]76    AddressAlign:    0x177    EntSize:         0x178    Content:         46616365626F6F6B20636C616E672076657273696F6E2031352E302E30202868747470733A2F2F6769742E696E7465726E616C2E7466626E772E6E65742F7265706F732F6769742F726F2F6F736D6574612F65787465726E616C2F6C6C766D2D70726F6A656374203864356561396432616431633161356139303862623632343663303261626162323235643562633829004C696E6B65723A204C4C442031392E302E30000079  - Name:            .debug_line80    Type:            SHT_PROGBITS81    AddressAlign:    0x182    Content:         590000000500080037000000010101FB0E0D00010101010000000100000101011F010900000003011F020F051E01000000000014E7C4DFD187393499D4332D94A1154D040000090260112000000000001405030AAE060B2E020200010183  - Name:            .debug_line_str84    Type:            SHT_PROGBITS85    Flags:           [ SHF_MERGE, SHF_STRINGS ]86    AddressAlign:    0x187    EntSize:         0x188    Content:         6D61696E2E637070002F55736572732F67636C6179746F6E2F446F63756D656E74732F7372632F7665726966792D7475730089Symbols:90  - Name:            main.cpp91    Type:            STT_FILE92    Index:           SHN_ABS93  - Name:            main94    Type:            STT_FUNC95    Section:         .text96    Binding:         STB_GLOBAL97    Value:           0x20116098    Size:            0xF99DWARF:100  debug_str:101    - foo102    - 'Facebook clang version 15.0.0 (https://git.internal.tfbnw.net/repos/git/ro/osmeta/external/llvm-project 8d5ea9d2ad1c1a5a908bb6246c02abab225d5bc8)'103    - main.cpp104    - main105    - int106    - '/Users/gclayton/Documents/src/verify-tus'107    - Foo108  debug_addr:109    - Length:          0xC110      Version:         0x5111      AddressSize:     0x8112      Entries:113        - Address:         0x201160114...115