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:
[hjl@gnu-6 gcc]$ cat /tmp/x.c
void
foo (void *b , unsigned int length)
{
char *ptr = (char *)b;
while (length--)
*ptr++ = 0;
}
[hjl@gnu-6 gcc]$ /usr/gcc-5.1.1/bin/gcc -O2 -g /tmp/x.c -c
[hjl@gnu-6 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
[hjl@gnu-6 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 mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils