59 lines · plain
1# REQUIRES: x862# RUN: yaml2obj %s -o %t.o3# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s4 5## Previously we would report an error saying the relocation in .debug_info6## has an unsupported target.7## Check we do not report debug information parsing errors when relocation8## used is of type R_*_NONE, what actually means it should be ignored.9 10# CHECK-NOT: error11# CHECK: error: undefined symbol: bar12# CHECK-NOT: error13 14--- !ELF15FileHeader:16 Class: ELFCLASS6417 Data: ELFDATA2LSB18 Type: ET_REL19 Machine: EM_X86_6420Sections:21 - Name: .text22 Type: SHT_PROGBITS23 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]24 Content: '0000000000000000'25 - Name: .rela.text26 Type: SHT_RELA27 AddressAlign: 828 Link: .symtab29 Info: .text30 Relocations:31 - Symbol: bar32 Type: R_X86_64_6433 - Name: .debug_line34 Type: SHT_PROGBITS35 Content: 3300000002001C0000000101FB0E0D000101010100000001000001006162632E730000000000000902000000000000000014020800010136 - Name: .rela.debug_line37 AddressAlign: 838 Type: SHT_RELA39 Link: .symtab40 Info: .debug_line41 Relocations:42 - Offset: 0x000000000000002943 Type: R_X86_64_NONE44 - Name: .debug_info45 Type: SHT_PROGBITS46 AddressAlign: 0x000000000000000147 Content: 0C00000004000000000008010000000048 - Name: .debug_abbrev49 Type: SHT_PROGBITS50 AddressAlign: 0x000000000000000151 Content: '0111001017000000'52 53Symbols:54 - Name: _start55 Section: .text56 Binding: STB_GLOBAL57 - Name: bar58 Binding: STB_GLOBAL59