public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: dwz@sourceware.org
Subject: [Bug default/27115] FAIL: dwz-0.13/testsuite/dwz.tests/devel-ignore-size.sh
Date: Mon, 28 Dec 2020 14:33:07 +0000	[thread overview]
Message-ID: <bug-27115-11298-d1OjHJdPEI@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27115-11298@http.sourceware.org/bugzilla/>

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-12-28
             Status|UNCONFIRMED                 |NEW
                 CC|                            |mark at klomp dot org

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
It looks like binutils 2.35.1 readelf helpfully adds the tag
(DW_TAG_partial_unit in this case) to the DW_AT_import when reporting the
Abbrev Number. Older readelf produced:

<0><b>: Abbrev Number: 17 (DW_TAG_partial_unit)
    <6b>   DW_AT_import      : <0xb>    [Abbrev Number: 17]
    <da>   DW_AT_import      : <0xb>    [Abbrev Number: 17]

So an workaround might be something like:

diff --git a/testsuite/dwz.tests/pr24468.sh b/testsuite/dwz.tests/pr24468.sh
index 4dac9a1..3b1b671 100644
--- a/testsuite/dwz.tests/pr24468.sh
+++ b/testsuite/dwz.tests/pr24468.sh
@@ -7,7 +7,7 @@ dwz -m 3 1 2

 readelf -wi 1 > READELF 2>/dev/null

-offsets=$(grep '(DW_TAG_partial_unit' READELF \
+offsets=$(grep '(DW_TAG_partial_unit' READELF | grep -v DW_AT_import \
              | awk '{print $1}' \
              | sed 's/.*<//;s/>.*//')
 for off in $offsets; do

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

  parent reply	other threads:[~2020-12-28 14:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-27  7:36 [Bug default/27115] New: " vt at altlinux dot org
2020-12-28 12:20 ` [Bug default/27115] " vt at altlinux dot org
2020-12-28 14:33 ` mark at klomp dot org [this message]
2021-01-02 13:08 ` vt at altlinux dot org
2021-01-02 14:41 ` vt at altlinux dot org
2021-01-03  7:46 ` vries at gcc dot gnu.org
2021-01-03  8:50 ` vt at altlinux dot org
2021-01-04  8:52 ` vries at gcc dot gnu.org
2021-01-04  9:09 ` vries at gcc dot gnu.org
2021-01-09 11:52 ` vt at altlinux 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-27115-11298-d1OjHJdPEI@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).