From: Tom de Vries <tdevries@suse.de>
To: dwz@sourceware.org, jakub@redhat.com
Subject: [committed] Require eu-unstrip >= 0.168 for objcopy-eu-unstrip*.sh
Date: Tue, 01 Jan 2019 00:00:00 -0000 [thread overview]
Message-ID: <20190711083312.GA902@delia> (raw)
Hi,
When using eu-unstrip 0.158, we run into:
...
eu-unstrip: cannot find matching section for [1] '.interp'
eu-unstrip: cannot find matching section for [2] '.note.ABI-tag'
...
eu-unstrip: cannot find matching section for [26] '.data'
eu-unstrip: cannot find matching section for [27] '.bss'
FAIL: testsuite/dwz.tests/objcopy-eu-unstrip.sh
...
And at eu-unstrip 0.164, this turns into:
...
eu-unstrip: invalid string offset in symbol [70]
FAIL: testsuite/dwz.tests/objcopy-eu-unstrip.sh
...
The test starts passing at eu-unstrip 0.168.
Fix the FAIL by requiring at least eu-unstrip 0.168 for
objcopy-eu-unstrip*.sh.
Committed to trunk.
Thanks,
- Tom
Require eu-unstrip >= 0.168 for objcopy-eu-unstrip*.sh
2019-07-11 Tom de Vries <tdevries@suse.de>
* testsuite/dwz.tests/objcopy-eu-unstrip-multifile.sh: Require
eu-unstrip >= 0.168.
* testsuite/dwz.tests/objcopy-eu-unstrip.sh: Same.
---
testsuite/dwz.tests/objcopy-eu-unstrip-multifile.sh | 9 +++++++++
testsuite/dwz.tests/objcopy-eu-unstrip.sh | 9 +++++++++
2 files changed, 18 insertions(+)
diff --git a/testsuite/dwz.tests/objcopy-eu-unstrip-multifile.sh b/testsuite/dwz.tests/objcopy-eu-unstrip-multifile.sh
index bc8c0b8..5f63c6d 100644
--- a/testsuite/dwz.tests/objcopy-eu-unstrip-multifile.sh
+++ b/testsuite/dwz.tests/objcopy-eu-unstrip-multifile.sh
@@ -17,6 +17,15 @@ fi
[ $status -eq 0 ]
+version=$(eu-unstrip --version | head -n 1 | cut -d ' ' -f3)
+major=$(echo $version | sed 's%\..*%%')
+minor=$(echo $version | sed 's%.*\.%%')
+if [ $major -gt 0 ] || [ $minor -ge 168 ]; then
+ true
+else
+ exit 77
+fi
+
eu-unstrip 1.stripped 1.debug -o 1.unstripped
smaller-than.sh 1.unstripped 1
diff --git a/testsuite/dwz.tests/objcopy-eu-unstrip.sh b/testsuite/dwz.tests/objcopy-eu-unstrip.sh
index dc068d9..460da93 100644
--- a/testsuite/dwz.tests/objcopy-eu-unstrip.sh
+++ b/testsuite/dwz.tests/objcopy-eu-unstrip.sh
@@ -13,6 +13,15 @@ fi
[ $status -eq 0 ]
+version=$(eu-unstrip --version | head -n 1 | cut -d ' ' -f3)
+major=$(echo $version | sed 's%\..*%%')
+minor=$(echo $version | sed 's%.*\.%%')
+if [ $major -gt 0 ] || [ $minor -ge 168 ]; then
+ true
+else
+ exit 77
+fi
+
eu-unstrip 1.stripped 1.debug -o 1.unstripped
smaller-than.sh 1.unstripped 1
reply other threads:[~2019-07-11 8:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20190711083312.GA902@delia \
--to=tdevries@suse.de \
--cc=dwz@sourceware.org \
--cc=jakub@redhat.com \
/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).