This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] S/390: Fix gotreloc_31-1 testcase.
- From: Andreas Krebbel <krebbel at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 27 Apr 2015 08:34:01 -0000
- Subject: [binutils-gdb] S/390: Fix gotreloc_31-1 testcase.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=963a4320b49a3c55af02b36a492a10ba04a08e8a
commit 963a4320b49a3c55af02b36a492a10ba04a08e8a
Author: Andreas Krebbel <krebbel@linux.vnet.ibm.com>
Date: Mon Apr 27 10:24:24 2015 +0200
S/390: Fix gotreloc_31-1 testcase.
Since we changed the default arch for objdump to zarch the following
testcase needs to check for the real instruction mnemonics instead of
just bytes.
This fixes the following testsuite fail on s390x:
FAIL: GOT: symbol address load from got to larl
Diff:
---
ld/testsuite/ChangeLog | 4 ++++
ld/testsuite/ld-s390/gotreloc_31-1.dd | 5 ++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index db467a9..a6704f8 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
+
+ * ld-s390/gotreloc_31-1.dd: Use instruction mnemonics.
+
2015-04-24 Alan Modra <amodra@gmail.com>
* ld-powerpc/tocnovar.d: Revert last change.
diff --git a/ld/testsuite/ld-s390/gotreloc_31-1.dd b/ld/testsuite/ld-s390/gotreloc_31-1.dd
index 4df4aa5..0eaaa39 100644
--- a/ld/testsuite/ld-s390/gotreloc_31-1.dd
+++ b/ld/testsuite/ld-s390/gotreloc_31-1.dd
@@ -4,9 +4,8 @@ tmpdir/gotreloc_31-1: file format elf32-s390
Disassembly of section .text:
.* <foo>:
-.*: c4 18 00 00 .long 0xc4180000
-.*: 08 4e e3 10 .long 0x084ee310
-.*: c0 0c 00 04 .long 0xc00c0004
+.*: c4 18 00 00 08 4e [ ]*lgrl %r1,11e8 <_GLOBAL_OFFSET_TABLE_\+0xc>
+.*: e3 10 c0 0c 00 04 [ ]*lg %r1,12\(%r12\)
.*: c0 10 00 00 00 08 [ ]*larl %r1,168 <bar>
.*: 58 10 c0 0c [ ]*l %r1,12\(%r12\)
.*: c0 10 00 00 00 03 [ ]*larl %r1,168 <bar>