1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %tabs 3# RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj 4# RUN: not ld.lld %tabs %t.o -o /dev/null -shared 2>&1 | FileCheck %s 5 6## Check we are able to report file and location from debug information 7## when reporting such kind of errors. 8# CHECK: error: test.s:3:(.text+0x1): relocation R_X86_64_32 out of range: 68719476736 is not in [0, 4294967295] 9 10.section .text,"ax",@progbits 11foo: 12.file 1 "test.s" 13.loc 1 3 14 movl $big, %edx 15 16.section .debug_abbrev,"",@progbits 17.byte 1 # Abbreviation Code 18.byte 17 # DW_TAG_compile_unit 19.byte 0 # DW_CHILDREN_no 20.byte 16 # DW_AT_stmt_list 21.byte 23 # DW_FORM_sec_offset 22.byte 0 # EOM(1) 23.byte 0 # EOM(2) 24.byte 0 # EOM(3) 25 26.section .debug_info,"",@progbits 27.long .Lend0 - .Lbegin0 # Length of Unit 28.Lbegin0: 29.short 4 # DWARF version number 30.long .debug_abbrev # Offset Into Abbrev. Section 31.byte 8 # Address Size (in bytes) 32.byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit 33.long .debug_line # DW_AT_stmt_list 34.Lend0: 35 36.section .debug_line,"",@progbits 37