brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 408e5e5 Raw
43 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3# RUN: ld.lld --gdb-index -e main %t.o -o /dev/null 2>&1 | FileCheck %s4# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/gdb-index-invalid-ranges.obj.s -o %t2.o5# RUN: llvm-ar rc %t.a %t.o6# RUN: ld.lld --gdb-index -e main %t2.o %t.a -o /dev/null 2>&1 | FileCheck --check-prefix=ARCHIVE %s7 8# CHECK: ld.lld: warning: {{.*}}gdb-index-invalid-ranges.s.tmp.o:{{(\(\.debug_info\):)?}} decoding address ranges: invalid range list entry at offset 0x109# ARCHIVE: ld.lld: warning: {{.*}}gdb-index-invalid-ranges.s.tmp.a(gdb-index-invalid-ranges.s.tmp.o):{{(\(\.debug_info\):)?}} decoding address ranges: invalid range list entry at offset 0x1010 11.section .text.foo1,"ax",@progbits12.globl f113.Lfunc_begin0:14f1:15 nop16.Lfunc_end0:17 18.section .debug_abbrev,"",@progbits19.byte 1                       # Abbreviation Code20.byte 17                      # DW_TAG_compile_unit21.byte 0                       # DW_CHILDREN_no22.byte 85                      # DW_AT_ranges23.byte 23                      # DW_FORM_sec_offset24.byte 0                       # EOM(1)25.byte 0                       # EOM(2)26.byte 0                       # EOM(3)27 28.section .debug_info,"",@progbits29.Lcu_begin0:30.long .Lunit_end0-.Lunit_begin0 # Length of Unit31.Lunit_begin0:32.short 4                      # DWARF version number33.long .debug_abbrev           # Offset Into Abbrev. Section34.byte 8                       # Address Size (in bytes)35.byte 1                       # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit36.long .Ldebug_ranges0         # DW_AT_ranges37.Lunit_end0:38 39.section .debug_ranges,"",@progbits40.Ldebug_ranges0:41.quad .Lfunc_begin042.quad .Lfunc_end043