https://sourceware.org/bugzilla/show_bug.cgi?id=27202

            Bug ID: 27202
           Summary: readelf -wL doesn't work on ".loc 0"
           Product: binutils
           Version: 2.37 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

[hjl@gnu-cfl-2 binutils]$ cat /tmp/dwarf-5-loc0.s
        .file "tmp.c"
        .text
        .balign 8
        .globl _start
_start:
        .file 0 "/tmp" "tmp.c"
        .loc 0 1 view 0

        .section .rodata
        .uleb128 .L1

        .text
        .globl func
        .type func, %function
func:
        .loc 0 2 view -0
        .loc 0 3 view .L1
        .quad 0
        .size func, .-func
[hjl@gnu-cfl-2 binutils]$ ../gas/as-new -gdwarf-5 -o x.o /tmp/dwarf-5-loc0.s
[hjl@gnu-cfl-2 binutils]$ ./readelf -wL x.o
Contents of the .debug_line section:

CU: ./tmp.c:
File name                            Line number    Starting address    View   
Stmt
readelf: Warning: file index 0 > number of files 1

 <over large file table index 4294967295>readelf: Warning: corrupt file index
4294967295 encountered
<corrupt>                                      1                   0           
   x
readelf: Warning: corrupt file index 4294967295 encountered
<corrupt>                                      2                   0           
   x
readelf: Warning: corrupt file index 4294967295 encountered
<corrupt>                                      3                   0       1   
   x
readelf: Warning: corrupt file index 4294967295 encountered
<corrupt>                                      -                 0x8


[hjl@gnu-cfl-2 binutils]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to