[PATCH] Load debug section only when dumping debug sections

H.J. Lu hjl.tools@gmail.com
Mon Jan 31 18:20:55 GMT 2022


On Mon, Jan 31, 2022 at 8:31 AM Nick Clifton <nickc@redhat.com> wrote:
>
> Hi H.J.
>
> > Don't load debug sections if we aren't dumping any debug sections.
> >
> >       PR binutils/28843
> >       * objdump.c (dump_any_debugging): New.
> >       (load_debug_section): Return false if dump_any_debugging isn't
> >       set.
> >       (main): Set dump_any_debugging when dumping any debug sections.
> >       * readelf (dump_any_debugging): New.
> >       (parse_args): Set dump_any_debugging when dumping any debug
> >       sections.
> >       (load_debug_section): Return false if dump_any_debugging isn't
> >       set.
>
> Approved - please apply.
>

Pushed.

OK for backport?

Thanks.

-- 
H.J.


More information about the Binutils mailing list