public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Alan Modra <amodra@gmail.com>
Cc: binutils@sourceware.org
Subject: Re: Add a testcase for PR binutils/26160
Date: Mon, 31 Oct 2022 09:24:07 -0700	[thread overview]
Message-ID: <CAMe9rOrpq74HaRpeZ+zmD-cR3PaixoHFN2_Ez+aFc708D2r3cA@mail.gmail.com> (raw)
In-Reply-To: <Y15JTWPhxRxbjnOk@squeak.grove.modra.org>

[-- Attachment #1: Type: text/plain, Size: 3785 bytes --]

On Sun, Oct 30, 2022 at 2:52 AM Alan Modra <amodra@gmail.com> wrote:
>
> Hi HJ,
>   In https://sourceware.org/pipermail/binutils/2020-June/111838.html,
> you added a test but didn't commit the readelf.exp changes to run it.
> Please fix.
>
> --
> Alan Modra
> Australia Development Lab, IBM

Here is the patch to run the test.  But it failed with

readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing
readelf: Warning: Cannot fetch indexed address: the .debug_addr
section is missing

Is this warning valid?

-- 
H.J.

[-- Attachment #2: pr26160.patch --]
[-- Type: text/x-patch, Size: 821 bytes --]

diff --git a/binutils/testsuite/binutils-all/readelf.exp b/binutils/testsuite/binutils-all/readelf.exp
index 210ed83f1b4..84a97710255 100644
--- a/binutils/testsuite/binutils-all/readelf.exp
+++ b/binutils/testsuite/binutils-all/readelf.exp
@@ -597,6 +597,18 @@ if ![is_remote host] {
     } else {
 	readelf_test {--debug-dump=macro -wN} $tempfile pr26112.r
     }
+
+    set test $srcdir/$subdir/pr26160.dwp.bz2
+    # We need to strip the ".bz2", but can leave the dirname.
+    set t $subdir/[file tail $test]
+    set testname [file rootname $t]
+    verbose $testname
+    set tempfile tmpdir/pr26160.dwp
+    if {[catch "system \"bzip2 -dc $test > $tempfile\""] != 0} {
+	untested "bzip2 -dc ($testname)"
+    } else {
+	readelf_test {-wi} $tempfile pr26112.r
+    }
 }
 
 # Check dwarf-5 support for DW_OP_addrx.

  reply	other threads:[~2022-10-31 16:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-30  9:52 Alan Modra
2022-10-31 16:24 ` H.J. Lu [this message]
2022-10-31 23:04   ` Alan Modra
2022-11-01  0:08     ` [PATCH] binutils: Run PR binutils/26160 test H.J. Lu
2022-11-01  0:25       ` Alan Modra
2022-11-01  1:02         ` H.J. Lu
2022-11-04 23:47           ` H.J. Lu

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=CAMe9rOrpq74HaRpeZ+zmD-cR3PaixoHFN2_Ez+aFc708D2r3cA@mail.gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=amodra@gmail.com \
    --cc=binutils@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).