public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/98811] [11 regression] All Go tests FAIL with abbrev offset out of range
Date: Mon, 25 Jan 2021 13:20:49 +0000	[thread overview]
Message-ID: <bug-98811-4-LG3E7XNnt3@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-98811-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98811

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:fe5cb7f94d4e9b6fc932017d4ee74ba4f9f417b9

commit r11-6893-gfe5cb7f94d4e9b6fc932017d4ee74ba4f9f417b9
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon Jan 25 14:20:05 2021 +0100

    configure: Add workaround for buggy binutils 2.35 [PR98811]

    binutils since https://sourceware.org/bugzilla/show_bug.cgi?id=25612
    changes from March last year until the
    https://sourceware.org/pipermail/binutils/2020-August/112684.html
    fix in early August emits incorrect .debug_info when assembling files
    with --gdwarf-5.  Instead of emitting proper DWARF 5 .debug_info header,
    it emits DWARF 4 .debug_info header with 5 as the dwarf version instead of
    4.  This results e.g. in libgcc.a (morestack.o) having garbage in its
    .debug_info sections and e.g. libbacktrace during pretty much all libgo
    tests fails miserably.

    The following patch adds a workaround for that, don't set
    HAVE_AS_GDWARF_5_DEBUG_FLAG if readelf can't read the .debug_info back.

    Built tested on x86_64-linux against both binutils 2.35 (buggy ones) and
    latest binutils trunk, the former with the patch now has DWARF 3
    .debug_line and DWARF 2 .debug_info in morestack.o, while the latter
    as before correct DWARF 5 .debug_line and .debug_info.

    2021-01-25  Jakub Jelinek  <jakub@redhat.com>

            PR debug/98811
            * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
            readelf -wi is able to read the emitted .debug_info back.
            * configure: Regenerated.

  parent reply	other threads:[~2021-01-25 13:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-24 21:25 [Bug debug/98811] New: " ro at gcc dot gnu.org
2021-01-24 21:25 ` [Bug debug/98811] " ro at gcc dot gnu.org
2021-01-24 21:33 ` mark at gcc dot gnu.org
2021-01-24 21:55 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-01-24 22:12 ` mark at gcc dot gnu.org
2021-01-25  9:47 ` jakub at gcc dot gnu.org
2021-01-25 11:15 ` jakub at gcc dot gnu.org
2021-01-25 13:20 ` cvs-commit at gcc dot gnu.org [this message]
2021-01-26 15:15 ` jakub at gcc dot gnu.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-98811-4-LG3E7XNnt3@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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).