[PATCH] DWARF-5: Skip empty range in DWARF-5 line number tables

H.J. Lu hjl.tools@gmail.com
Sun Jan 24 04:16:17 GMT 2021


On Sat, Jan 23, 2021 at 5:34 PM Alan Modra <amodra@gmail.com> wrote:
>
> On Sat, Jan 23, 2021 at 03:29:35PM -0800, H.J. Lu wrote:
> > Advance rngs_ptr when parsing DW_RLE_offset_pair, which was missing in
> >
> > commit c3757b583d2448a5996e83e374fb96ac7938da35
> > Author: Mark Wielaard <mark@klomp.org>
> > Date:   Tue Aug 25 15:33:00 2020 +0100
> >
> >     Fix the linker's handling of DWARF-5 line number tables.
> >
> >       PR binutils/27231
> >       * dwarf2.c (read_rnglists): Advance rngs_ptr after
> >       _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
>
> OK everywhere.
>

This patch is also needed to skip empty ranges in DWARF-5 line
number tables generated by GCC 11.

OK for master?

-- 
H.J.


More information about the Binutils mailing list