brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · 9423096 Raw
75 lines · plain
1# REQUIRES: x862# RUN: yaml2obj %s -o %t.o3# RUN: not ld.lld %t.o -o /dev/null4 5# The debug info has a broken relocation. Check that we don't crash.6 7# We used to dereference null Target in DWARF.cpp:findAux while reporting a duplicate symbol error,8# because Target wasn't initialized yet.9# RUN: not ld.lld %t.o %t.o -o /dev/null10 11--- !ELF12FileHeader:13  Class:           ELFCLASS6414  Data:            ELFDATA2LSB15  Type:            ET_REL16  Machine:         EM_X86_6417Sections:18  - Name:            .text19    Type:            SHT_PROGBITS20    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]21    Content:         '0000000000000000'22  - Name:            .rela.text23    Type:            SHT_RELA24    AddressAlign:    825    Link:            .symtab26    Info:            .text27    Relocations:28      - Symbol:      bar29        Type:        R_X86_64_6430  - Name:            .debug_line31    Type:            SHT_PROGBITS32    Content:         3300000002001C0000000101FB0E0D000101010100000001000001006162632E730000000000000902000000000000000014020800010133  - Name:            .rela.debug_line34    AddressAlign:    835    Type:            SHT_RELA36    Link:            .symtab37    Info:            .debug_line38    Relocations:39      - Offset:          0x000000000000002940        Symbol:          bar41        Type:            R_X86_64_6442  - Name:            .debug_info43    Type:            SHT_PROGBITS44    AddressAlign:    0x000000000000000145    Content:         0C00000004000000000008010000000046  - Name:            .rela.debug_info47    Type:            SHT_RELA48    Link:            .symtab49    AddressAlign:    0x000000000000000850    Info:            .debug_info51    Relocations:52      - Offset:          0x000000000000000653        Symbol:          .debug_abbrev54        Type:            R_X86_64_3255      - Offset:          0x000000000000000C56        Symbol:          .debug_line57        Type:            R_X86_64_3258  - Name:            .debug_abbrev59    Type:            SHT_PROGBITS60    AddressAlign:    0x000000000000000161    Content:         '0111001017000000'62 63Symbols:64  - Name:            .debug_abbrev65    Type:            STT_SECTION66    Section:         .debug_abbrev67  - Name:            .debug_line68    Type:            STT_SECTION69    Section:         .debug_line70  - Name:            _start71    Section:         .text72    Binding:         STB_GLOBAL 73  - Name:            bar74    Binding:         STB_GLOBAL75