diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-04-30 08:37:08 +0800 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-05-01 13:52:15 +0930 |
commit | f72c4fa3d53b06992259293377ce17dad05c8701 (patch) | |
tree | 218b3c199a520eaff32f90c0d8eeb20ac63d7d57 /libctf/ctf-open.c | |
parent | 4aa66c7645e4d6fba129f44e85d1036344b365e0 (diff) | |
download | binutils-f72c4fa3d53b06992259293377ce17dad05c8701.zip binutils-f72c4fa3d53b06992259293377ce17dad05c8701.tar.gz binutils-f72c4fa3d53b06992259293377ce17dad05c8701.tar.bz2 |
dwarf: Properly check holes in .debug_ranges/debug_rnglists
Don't warn if the offset of the first entry in .debug_rnglists starts
right after the header. Warn holes in .debug_ranges and debug_rnglists
sections only if the last end pointer isn't the same as the current
start pointer.
PR binutils/32927
* dwarf.c (display_debug_ranges_list): Return the pointer to the
end.
(display_debug_ranges): Don't warn if the offset of the first
entry in .debug_rnglists starts right after the header. Warn a
hole only if the last end pointer is the same as the next pointer.
* testsuite/binutils-all/x86-64/dwarf4.s: New file.
* testsuite/binutils-all/x86-64/dwarf5.s: Likewise.
* testsuite/binutils-all/x86-64/pr32927-1.d: Likewise.
* testsuite/binutils-all/x86-64/pr32927-2.d: Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Co-Authored-By: Alan Modra <amodra@gmail.com>
Diffstat (limited to 'libctf/ctf-open.c')
0 files changed, 0 insertions, 0 deletions