This is the mail archive of the binutils@sources.redhat.com 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]

[PATCH] gas/m68k/pcrel test portability problem


When configuring for m68k targets that use ELF the alignment of the text
section defaults to 4.  This causes a spurious test failure because of the
additional padding.  This problem is also present in the release branch.

2001-03-18  Andreas Schwab  <schwab@suse.de>

	* gas/m68k/pcrel.s: Force alignment to 8 byte boundary to get
	consistent output across targets.
	* gas/m68k/pcrel.d: Adjusted.

Index: testsuite/gas/m68k/pcrel.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/m68k/pcrel.d,v
retrieving revision 1.2
diff -u -a -r1.2 testsuite/gas/m68k/pcrel.d
--- testsuite/gas/m68k/pcrel.d	2000/12/09 22:55:52	1.2
+++ testsuite/gas/m68k/pcrel.d	2001/03/18 17:59:26
@@ -21,7 +21,7 @@
  00e0 41fb0170 ffff7fff 4e7141fa 7fff41fb  A..p....NqA...A.
  00f0 01700000 80004e71 41fb0170 00000000  .p....NqA..p....
  0100 41fb0930 00000000 4e7141f9 00000000  A..0....NqA.....
- 0110 4e710000 0000                        Nq....          
+ 0110 4e710000 00000000                    Nq........      
 Disassembly of section \.text:
 0+0000 <.*> nop
 0+0002 <lbl_b> nop
@@ -85,3 +85,4 @@
 			10c: R_68K_32	undef
 0+0110 <lbl_a\+(0x|)6c> nop
 0+0112 <lbl_a\+(0x|)6e> orib #0,%d0
+	\.\.\.
Index: testsuite/gas/m68k/pcrel.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/m68k/pcrel.s,v
retrieving revision 1.1.1.1
diff -u -a -r1.1.1.1 testsuite/gas/m68k/pcrel.s
--- testsuite/gas/m68k/pcrel.s	1999/05/03 07:28:51	1.1.1.1
+++ testsuite/gas/m68k/pcrel.s	2001/03/18 17:59:26
@@ -56,4 +56,4 @@
 	nop
 	lea	undef,%a0
 	nop
-	.long 0
+	.p2align 3

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


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