[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/18374] New: readelf fails to dump debug_loc
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug binutils/18374] New: readelf fails to dump debug_loc |
Date: |
Mon, 04 May 2015 00:17:08 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18374
Bug ID: 18374
Summary: readelf fails to dump debug_loc
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
On x86-64:
address@hidden gcc]$ cat /tmp/x.c
void
foo (void *b , unsigned int length)
{
char *ptr = (char *)b;
while (length--)
*ptr++ = 0;
}
address@hidden gcc]$ /usr/gcc-5.1.1/bin/gcc -O2 -g /tmp/x.c -c
address@hidden gcc]$ readelf --debug-dump=loc x.o
Contents of the .zdebug_loc section:
Offset Begin End Expression
00000000 0000000000000000 000000000000000c (DW_OP_reg5 (rdi))
00000013 000000000000000c 000000000000001f (DW_OP_GNU_entry_value:
(DW_OP_reg5 (rdi)); DW_OP_stack_value)
00000029 <End of list>
00000039 <End of list>
readelf: Warning: There are 40 unused bytes at the end of section .zdebug_loc
address@hidden gcc]$
There are 2 location lists in .debug_loc.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/18374] New: readelf fails to dump debug_loc,
hjl.tools at gmail dot com <=