brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.1 KiB · f85d97a Raw
117 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 if we get an error for a6# local type unit. We only need to verify that errors work for type units and7# we can rely on the test for compile units to verify all other errors that can8# happen in the .debug_names entries.9 10# CHECK: Verifying .debug_names...11# CHECK: error: Name Index @ 0x0: Entry @ 0x7f references a non-existing DIE @ 0x25.12# CHECK: error: Aggregated error counts:13# CHECK: error: NameIndex references nonexistent DIE occurred 1 time(s).14# Errors detected.15 16--- !ELF17FileHeader:18  Class:           ELFCLASS6419  Data:            ELFDATA2LSB20  Type:            ET_EXEC21  Machine:         EM_X86_6422ProgramHeaders:23  - Type:            PT_PHDR24    Flags:           [ PF_R ]25    VAddr:           0x20004026    Align:           0x827    Offset:          0x4028  - Type:            PT_LOAD29    Flags:           [ PF_R ]30    FirstSec:        .eh_frame31    LastSec:         .eh_frame32    VAddr:           0x20000033    Align:           0x100034    Offset:          0x035  - Type:            PT_LOAD36    Flags:           [ PF_X, PF_R ]37    FirstSec:        .text38    LastSec:         .text39    VAddr:           0x20116040    Align:           0x100041    Offset:          0x16042  - Type:            PT_GNU_STACK43    Flags:           [ PF_W, PF_R ]44    Align:           0x045    Offset:          0x046Sections:47  - Name:            .eh_frame48    Type:            SHT_PROGBITS49    Flags:           [ SHF_ALLOC ]50    Address:         0x20012051    AddressAlign:    0x852    Content:         1400000000000000017A5200017810011B0C0708900100001C0000001C000000201000000F00000000410E108602430D064A0C07080000000000000053  - Name:            .text54    Type:            SHT_PROGBITS55    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]56    Address:         0x20116057    AddressAlign:    0x1058    Content:         554889E5C745FC0000000031C05DC359  - Name:            .debug_info60    Type:            SHT_PROGBITS61    AddressAlign:    0x162    Content:         260000000500020800000000F23532F3E4235D67230000000121000000000008000000020506010001004800000005000108000000000300210001080000000000000002000F0000000800000004000F00000001560300033E0000000502917B05000442000000000604050407F23532F3E4235D670063  - Name:            .debug_abbrev64    Type:            SHT_PROGBITS65    AddressAlign:    0x166    Content:         0141011305101772170000021300360B03250B0B3A0B3B0B0000031101252513050325721710171B25111B120673170000042E01111B1206401803253A0B3B0B49133F190000053400021803253A0B3B0B4913000006240003253E0B0B0B00000713003C19692000000067  - Name:            .debug_str_offsets68    Type:            SHT_PROGBITS69    AddressAlign:    0x170    Content:         20000000050000000400000096000000A80000009F000000A400000000000000D100000071  - Name:            .debug_names72    Type:            SHT_PROGBITS73    AddressAlign:    0x474    Content:         900000000500000001000000010000000000000003000000030000001B000000080000004C4C564D303730302A000000000000000100000002000000030000008973880B6A7F9A7C3080880BD10000009F000000A400000000000000070000000D0000000113020B031304190000022E03130419000003240313041900000001002500000000022300000000033E00000000000075  - Name:            .comment76    Type:            SHT_PROGBITS77    Flags:           [ SHF_MERGE, SHF_STRINGS ]78    AddressAlign:    0x179    EntSize:         0x180    Content:         46616365626F6F6B20636C616E672076657273696F6E2031352E302E30202868747470733A2F2F6769742E696E7465726E616C2E7466626E772E6E65742F7265706F732F6769742F726F2F6F736D6574612F65787465726E616C2F6C6C766D2D70726F6A656374203864356561396432616431633161356139303862623632343663303261626162323235643562633829004C696E6B65723A204C4C442031392E302E30000081  - Name:            .debug_line82    Type:            SHT_PROGBITS83    AddressAlign:    0x184    Content:         590000000500080037000000010101FB0E0D00010101010000000100000101011F010900000003011F020F051E01000000000014E7C4DFD187393499D4332D94A1154D040000090260112000000000001405030AAE060B2E020200010185  - Name:            .debug_line_str86    Type:            SHT_PROGBITS87    Flags:           [ SHF_MERGE, SHF_STRINGS ]88    AddressAlign:    0x189    EntSize:         0x190    Content:         6D61696E2E637070002F55736572732F67636C6179746F6E2F446F63756D656E74732F7372632F7665726966792D7475730091Symbols:92  - Name:            main.cpp93    Type:            STT_FILE94    Index:           SHN_ABS95  - Name:            main96    Type:            STT_FUNC97    Section:         .text98    Binding:         STB_GLOBAL99    Value:           0x201160100    Size:            0xF101DWARF:102  debug_str:103    - foo104    - 'Facebook clang version 15.0.0 (https://git.internal.tfbnw.net/repos/git/ro/osmeta/external/llvm-project 8d5ea9d2ad1c1a5a908bb6246c02abab225d5bc8)'105    - main.cpp106    - main107    - int108    - '/Users/gclayton/Documents/src/verify-tus'109    - Foo110  debug_addr:111    - Length:          0xC112      Version:         0x5113      AddressSize:     0x8114      Entries:115        - Address:         0x201160116...117