bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/27371] [readelf] .debug_rnglists section header not parsed


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/27371] [readelf] .debug_rnglists section header not parsed
Date: Wed, 10 Feb 2021 11:30:50 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27371

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=52ff20fe7ba8e8de2660339fff5308ed932e2b32

commit 52ff20fe7ba8e8de2660339fff5308ed932e2b32
Author: Tom de Vries <tdevries@suse.de>
Date:   Wed Feb 10 12:30:46 2021 +0100

    [binutils] Handle presence of both .debug_ranges and .debug_rnglists

    With exec:
    ...
    $ g++ src/gdb/testsuite/gdb.cp/cpexprs.cc -gdwarf-5 -fdebug-types-section
    ...
    I run into:
    ...
    $ readelf -w a.out > READELF
    readelf: Error: Invalid range list entry type 126
    readelf: Error: Invalid range list entry type 60
    ...

    The executable contains both a .debug_rnglists section (for CU
    cpexprs.cc) and a .debug_ranges section (for other CUs, like crti.S).  But
    when executing display_debug_ranges for say, section .debug_rnglists it
also
    tries to use the range list references related to section .debug_ranges.

    Fix this by filtering out the .debug_range references when handling
    .debug_rnglists and vice versa.

    binutils/ChangeLog:

    2021-02-10  Tom de Vries  <tdevries@suse.de>

            PR binutils/27371
            * dwarf.c (display_debug_ranges): Filter range lists according to
            section.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]