public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: "mliska at suse dot cz" <sourceware-bugzilla@sourceware.org>
To: dwz@sourceware.org
Subject: [Bug default/26987] GCC 11 Ada binaries contain unknown tags
Date: Wed, 02 Dec 2020 12:29:14 +0000	[thread overview]
Message-ID: <bug-26987-11298-eIR1iemtSv@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26987-11298@http.sourceware.org/bugzilla/>

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

--- Comment #6 from Martin Liska <mliska at suse dot cz> ---
(In reply to Mark Wielaard from comment #5)
> My local build of binutils readelf doesn't show this issue. Might it be
> https://sourceware.org/bugzilla/show_bug.cgi?id=26548 (which should be part
> of 2.35.1, but was a bug in 2.35)

It's actually the following commit:

commit ef5e3e92dc7234f64e77e8c8af5d61685d96263b
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Oct 27 16:17:13 2020 +0000

    Fix the decoding of DW_FORM_ref_addr DWARF attribute.

            * dwarf.c (struct abbrev_list): New structure.  Used to collect
            lists of abbreviation sets.
            (struct abbrev_map): New structure.  Used to map CU offsets to
            abbreviation offsets.
            (record_abbrev_list): New function.  A new entry to an
            abbreviation list.
            (free_all_abbrevs): Update to free abbreviation lists.
            (new_abbrev_list): New function.  Start a new abbreviation
            list.
            (find_abbrev_list_by_abbrev_offset): New function.
            (find_abbrev_map_by_offset): New function.
            (add_abbrev): Add abbrev_list parameter.
            (add_abbrev_attr): Likewise.
            (process_abbrev_section): Rename to process_abbrev_set and add
            list parameter.
            (get_type_abbrev_from_form): New function.  Attempts to decode the
            forms used by DW_AT_type attributes.
            (get_type_signedness): Display type names if operating in wide
            mode.  Use get_type_abbrev_from_form.
            (read_and_display_attr_value): Use get_type_abbrev_from_form.
            (process_debug_info): Pre-parse the CU headers to collate all the
            abbrevs before starting the main scan.
            (process_debug_abbrev): Do not free any loaded abbrevs.
            (free_debug_memory): Free the abbrev maps.

    (cherry picked from commit bcd213b2cfbca2df53fb7e5d187fd67ea8eb7185)

The commit was installed after 2.35.1 was released.

> 
> Also dwz gnatmake doesn't show any issues.
> So I assume it is an issue when doing dwz -m ?

Yes, I'll attach you a file from gcc11 package build that suffers from that.

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

  parent reply	other threads:[~2020-12-02 12:29 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-01 11:22 [Bug default/26987] New: " mliska at suse dot cz
2020-12-01 11:38 ` [Bug default/26987] " jakub at redhat dot com
2020-12-02  8:25 ` mliska at suse dot cz
2020-12-02 10:06 ` mark at klomp dot org
2020-12-02 10:27 ` mliska at suse dot cz
2020-12-02 10:56 ` mark at klomp dot org
2020-12-02 12:29 ` mliska at suse dot cz [this message]
2020-12-02 12:31 ` mliska at suse dot cz
2020-12-02 12:51 ` mark at klomp dot org
2020-12-02 13:09 ` mark at klomp dot org
2020-12-02 14:19 ` tromey at sourceware dot org
2020-12-02 14:26 ` jakub at redhat dot com
2020-12-02 14:35 ` mark at klomp dot org
2020-12-02 14:40 ` jakub at redhat dot com
2020-12-02 15:08 ` jakub at redhat dot com
2020-12-02 15:14 ` mark at klomp dot org
2020-12-02 15:17 ` mark at klomp dot org
2020-12-02 15:18 ` jakub at redhat dot com
2020-12-02 15:21 ` jakub at redhat dot com
2020-12-02 15:27 ` mark at klomp dot org
2020-12-02 15:35 ` tromey at sourceware dot org
2020-12-02 16:05 ` ebotcazou at gcc dot gnu.org
2020-12-02 23:46 ` jakub at redhat dot com
2021-02-13 22:52 ` mark at klomp dot org
2021-02-18 21:19 ` mark at klomp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-26987-11298-eIR1iemtSv@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=dwz@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).