47 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %tabs3# RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj4# RUN: not ld.lld %tabs %t.o -o /dev/null -shared 2>&1 | FileCheck %s5 6# RUN: rm -f %t.a && llvm-ar rc %t.a %t.o7# RUN: not ld.lld -shared %t.a %tabs -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK28 9## Check we are able to report file and location from debug information10## when reporting such kind of errors.11# CHECK: error: {{.*}}.o:(.text+0x1): relocation R_X86_64_32 out of range: 68719476736 is not in [0, 4294967295]; references 'big'12# CHECK-NEXT: >>> referenced by test.s:313# CHECK-NEXT: >>> defined in {{.*}}abs14 15# CHECK2: error: {{.*}}.a({{.*}}.o):(.text+0x1): relocation R_X86_64_32 out of range: 68719476736 is not in [0, 4294967295]; references 'big'16# CHECK2-NEXT: >>> referenced by test.s:317# CHECK2-NEXT: >>> defined in {{.*}}abs18 19.section .text,"ax",@progbits20.globl _start21_start:22.file 1 "test.s"23.loc 1 324 movl $big, %edx25 26.section .debug_abbrev,"",@progbits27.byte 1 # Abbreviation Code28.byte 17 # DW_TAG_compile_unit29.byte 0 # DW_CHILDREN_no30.byte 16 # DW_AT_stmt_list31.byte 23 # DW_FORM_sec_offset32.byte 0 # EOM(1)33.byte 0 # EOM(2)34.byte 0 # EOM(3)35 36.section .debug_info,"",@progbits37.long .Lend0 - .Lbegin0 # Length of Unit38.Lbegin0:39.short 4 # DWARF version number40.long .debug_abbrev # Offset Into Abbrev. Section41.byte 8 # Address Size (in bytes)42.byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit43.long .debug_line # DW_AT_stmt_list44.Lend0:45 46.section .debug_line,"",@progbits47