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] correct the last few section padding bogons in mips tests


The following patch corrects the last few section padding bogons in
the mips tests -- see earlier messages of mine for an explanation of
what that means.  8-)

patch applies in src, but needs
http://sources.redhat.com/ml/binutils/2000-10/msg00043.html applied
first.  changelog below.  It's several independent patches, really, so
there are multiple groups in the ChangeLog.


verified to work on mips-elf, mips64-elf, mips-irix6, and mips-linux
(host sparc-solaris).

For the latter, this patch is somewhat special: when bunched together
with all of my previous patches, 'gmake check' in binutils top level
targetted for mips-linux now completes without unexpected failures!!!



chris
==============================================================================

for gas/testsuite/ChangeLog:

2000-10-18  Chris Demetriou  <cgd@sibyte.com>

	* gas/mips/empic.d: Pad sections out to 16 bytes, to avoid
	alignment issues so tests are useful on multiple targets.
	* gas/mips/empic.s: Likewise.
	* gas/mips/mips16-e.d: Likewise.
	* gas/mips/mips16-e.s: Likewise.
	* gas/mips/mips16-f.d: Likewise.
	* gas/mips/mips16-f.s: Likewise.

diff -rc ../src.P10/gas/testsuite/gas/mips/empic.d ./gas/testsuite/gas/mips/empic.d
*** ../src.P10/gas/testsuite/gas/mips/empic.d	Mon Oct 16 15:57:44 2000
--- ./gas/testsuite/gas/mips/empic.d	Wed Oct 18 18:20:18 2000
***************
*** 124,130 ****
   00c0 00000000 00000034 00000000 10000032  .*
   00d0 10000033 24030034 2403003c 000000cc  .*
   00e0 00000034 00000000 00000000 000000cc  .*
!  00f0 00000000 00000034                    .*
  Contents of section \.data:
  Contents of section \.reginfo:
   0000 80000008 00000000 00000000 00000000  .*
--- 124,130 ----
   00c0 00000000 00000034 00000000 10000032  .*
   00d0 10000033 24030034 2403003c 000000cc  .*
   00e0 00000034 00000000 00000000 000000cc  .*
!  00f0 00000000 00000034 00000000 00000000  .*
  Contents of section \.data:
  Contents of section \.reginfo:
   0000 80000008 00000000 00000000 00000000  .*
***************
*** 148,151 ****
   00d0 00000000 00000004 00000000 00000104  .*
   00e0 00000000 00000008 00000000 000000e8  .*
   00f0 00000000 00000100 00000000 000000fc  .*
!  0100 00000000                             .*
--- 148,151 ----
   00d0 00000000 00000004 00000000 00000104  .*
   00e0 00000000 00000008 00000000 000000e8  .*
   00f0 00000000 00000100 00000000 000000fc  .*
!  0100 00000000 00000000 00000000 00000000  .*
diff -rc ../src.P10/gas/testsuite/gas/mips/empic.s ./gas/testsuite/gas/mips/empic.s
*** ../src.P10/gas/testsuite/gas/mips/empic.s	Mon Oct 16 15:57:48 2000
--- ./gas/testsuite/gas/mips/empic.s	Wed Oct 18 19:00:12 2000
***************
*** 59,64 ****
--- 59,68 ----
  	nop
  	.dword	2b		# R_MIPS_64	.text CC
  	.dword	2b-l5		# R_MIPS_PC64	.text 98  or 34
+ 
+ # align section end to 16-byte boundary for easier testing on multiple targets
+ 	.p2align 4
+ 
  	
  	.section ".foo","ax",@progbits
  	nop
***************
*** 108,110 ****
--- 112,117 ----
  l1:
  
  	nop
+ 
+ # align section end to 16-byte boundary for easier testing on multiple targets
+ 	.p2align 4
diff -rc ../src.P10/gas/testsuite/gas/mips/mips16-e.d ./gas/testsuite/gas/mips/mips16-e.d
*** ../src.P10/gas/testsuite/gas/mips/mips16-e.d	Fri Mar 10 18:16:25 2000
--- ./gas/testsuite/gas/mips/mips16-e.d	Wed Oct 18 19:07:00 2000
***************
*** 29,35 ****
  
  
  Contents of section \.text:
!  0000 65006500 65006500                    .*
  Contents of section \.data:
  Contents of section \.reginfo:
   0000 00000001 00000000 00000000 00000000  .*
--- 29,35 ----
  
  
  Contents of section \.text:
!  0000 65006500 65006500 65006500 65006500  .*
  Contents of section \.data:
  Contents of section \.reginfo:
   0000 00000001 00000000 00000000 00000000  .*
***************
*** 38,41 ****
  #...
  Contents of section foo:
   0000 00000000 00000008 00000000 00000003  .*
!  0010 00000000 00000008                    .*
--- 38,41 ----
  #...
  Contents of section foo:
   0000 00000000 00000008 00000000 00000003  .*
!  0010 00000000 00000008 00000000 00000000  .*
diff -rc ../src.P10/gas/testsuite/gas/mips/mips16-e.s ./gas/testsuite/gas/mips/mips16-e.s
*** ../src.P10/gas/testsuite/gas/mips/mips16-e.s	Fri Mar 10 18:16:25 2000
--- ./gas/testsuite/gas/mips/mips16-e.s	Wed Oct 18 19:07:02 2000
***************
*** 4,9 ****
--- 4,13 ----
  l1:     nop
  1:      nop
          nop
+ 
+ # align section end to 16-byte boundary for easier testing on multiple targets
+ 	.p2align 4
+ 
          .section "foo"
          .word   l1
          .word   l1+8
***************
*** 11,13 ****
--- 15,20 ----
          .word   1b+3
  	.word	g1
  	.word	g1+8
+ 
+ # align section end to 16-byte boundary for easier testing on multiple targets
+ 	.p2align 4
diff -rc ../src.P10/gas/testsuite/gas/mips/mips16-f.d ./gas/testsuite/gas/mips/mips16-f.d
*** ../src.P10/gas/testsuite/gas/mips/mips16-f.d	Fri Mar 10 18:16:25 2000
--- ./gas/testsuite/gas/mips/mips16-f.d	Wed Oct 18 19:08:00 2000
***************
*** 22,28 ****
  
  
  Contents of section \.text:
!  0000 65006500                             .*
  Contents of section \.data:
  Contents of section \.reginfo:
   0000 00000001 00000000 00000000 00000000  .*
--- 22,28 ----
  
  
  Contents of section \.text:
!  0000 65006500 65006500 65006500 65006500  .*
  Contents of section \.data:
  Contents of section \.reginfo:
   0000 00000001 00000000 00000000 00000000  .*
***************
*** 30,33 ****
  Contents of section \.mdebug:
  #...
  Contents of section foo:
!  0000 00000003                             .*
--- 30,33 ----
  Contents of section \.mdebug:
  #...
  Contents of section foo:
!  0000 00000003 00000000 00000000 00000000  .*
diff -rc ../src.P10/gas/testsuite/gas/mips/mips16-f.s ./gas/testsuite/gas/mips/mips16-f.s
*** ../src.P10/gas/testsuite/gas/mips/mips16-f.s	Fri Mar 10 18:16:25 2000
--- ./gas/testsuite/gas/mips/mips16-f.s	Wed Oct 18 19:07:41 2000
***************
*** 2,6 ****
--- 2,14 ----
          .text
          nop
  l1:     nop
+ 
+ # align section end to 16-byte boundary for easier testing on multiple targets
+ 	.p2align 4
+ 
+ 
          .section "foo"
          .word   l1+3
+ 
+ # align section end to 16-byte boundary for easier testing on multiple targets
+ 	.p2align 4

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