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] make gas ELF tests expect to fail on most mips*-*


The patch below makes the gas generic ELF tests expect to fail on most
mips*-*-* other than mips*-*-elf.

mips*-*-elf doesn't bother to pad sections out to their alignment, but
other ELF mips targets do (up to a limit, anyway).

The generic ELF tests test the binary output -- and so lose when
presented with this.

There are other ways to fix this, e.g. put some more unique values in
the data being deposited, and allow zero bytes at the end of the
'line' of output.  If y'all would like, I can whack the test cases to
do that.  All i ask for is guidance.  8-)


patch applies from src, and is independent of my previous patches.
changelog below.

tested on mips-elf, mips64-elf, mips-linux, and mips-irix6 (i had to
specially arrange for gas to be built on mips-irix6 since it's no
noconfigdirs by default).


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

for gas/testsuite/ChangeLog:

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

	* gas/elf/elf.exp: Expect section0 and section1 tests to
	fail on MIPS ELF targets other than mips*-*-elf, due to
	section padding issues.


diff -rc ../src.P10/gas/testsuite/gas/elf/elf.exp ./gas/testsuite/gas/elf/elf.exp
*** ../src.P10/gas/testsuite/gas/elf/elf.exp	Sun May 21 11:06:40 2000
--- ./gas/testsuite/gas/elf/elf.exp	Wed Oct 18 17:14:34 2000
***************
*** 11,16 ****
--- 11,27 ----
       && ![istarget *-*-linux*coff*]
       && ![istarget *-*-linux*oldld*]
  } then {
+ 
+     # MIPS ELF but not generic target "*-*-elf" will fail due to added
+     # padding at end of text, data, and bss sections.  There's no easy
+     # way to express that combination to setup_xfail.
+     if { [istarget "mips*-*-*"] && ![istarget "mips*-*-elf"] } then {
+ 	setup_xfail "*-*-*"
+     }
      run_dump_test "section0" 
+ 
+     if { [istarget "mips*-*-*"] && ![istarget "mips*-*-elf"] } then {
+ 	setup_xfail "*-*-*"
+     }
      run_dump_test "section1" 
  }


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