[PATCH] dwarf: Properly check holes in .debug_ranges/debug_rnglists
H.J. Lu
hjl.tools@gmail.com
Wed Apr 30 21:35:38 GMT 2025
On Thu, May 1, 2025 at 4:58 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> 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): 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.
> * testsuite/lib/binutils-common.exp (run_dump_test): Support
> "prune_dump_output: REGEX" to prune dump output.
>
> OK for master?
>
> Thanks.
>
> --
> H.J.
Resent with compression.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dwarf-Properly-check-holes-in-.debug_ranges-debug_rn.patch.xz
Type: application/x-xz
Size: 90272 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250501/bb2aff8e/attachment-0001.xz>
More information about the Binutils
mailing list