This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] S/390: Fix gotpcrel testcase


Hi,

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

Bye,

-Andreas

ld/testsuite/

2015-04-21  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

	* ld-s390/gotreloc_31-1.dd: Use instruction mnemonics.

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>
-- 
1.9.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]