https://sourceware.org/bugzilla/show_bug.cgi?id=32927
--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <amo...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f72c4fa3d53b06992259293377ce17dad05c8701 commit f72c4fa3d53b06992259293377ce17dad05c8701 Author: H.J. Lu <hjl.to...@gmail.com> Date: Wed Apr 30 08:37:08 2025 +0800 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.to...@gmail.com> Co-Authored-By: Alan Modra <amo...@gmail.com> -- You are receiving this mail because: You are on the CC list for the bug.