[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28012] readelf --debug-dump=Ranges doesn't handle concaten
From: |
simon.marchi at polymtl dot ca |
Subject: |
[Bug binutils/28012] readelf --debug-dump=Ranges doesn't handle concatenated .debug_rnglists sections |
Date: |
Tue, 27 Feb 2024 03:10:12 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28012
Simon Marchi <simon.marchi at polymtl dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simon.marchi at polymtl dot ca
--- Comment #3 from Simon Marchi <simon.marchi at polymtl dot ca> ---
Cool, thanks! I had to bisect to know which commit fixed it, it's this one:
e7f024765a48fba4452535a5fc006a7e858730fd is the first new commit
commit e7f024765a48fba4452535a5fc006a7e858730fd
Author: Alan Modra <amodra@gmail.com>
Date: Sun Oct 17 17:34:46 2021 +1030
PR28459, readelf issues bogus warning
I'd missed the fact that the .debug_rnglists dump doesn't exactly
display the contents of the section. Instead readelf rummages through
.debug_info looking for DW_AT_ranges entries, then displays the
entries in .debug_rnglists pointed at, sorted. A simpler dump of the
actual section contents might be more useful and robust, but it was
likely done that way to detect overlap and holes.
Anyway, the headers in .debug_rnglists besides the first are ignored,
and limiting to the unit length of the first header fails if there is
more than one unit.
PR 28459
* dwarf.c (display_debug_ranges): Don't constrain data to length
in header.
binutils/dwarf.c | 1 -
1 file changed, 1 deletion(-)
--
You are receiving this mail because:
You are on the CC list for the bug.