FAIL: i386 pcrel reloc [Was: Results for binutils 2.15.91 20040826 testsuite on i686-pc-cygwin]

Nick Clifton nickc@redhat.com
Fri Aug 27 08:08:00 GMT 2004


Hi Alan,

> I meant to say that I don't object to only running these tests for
> ELF.

Well since they both work for COFF targets but not PE targets I think 
that the patch below is the best solution for now.  I shall be applying 
it shortly.

Cheers
   Nick

gas/testsuite/ChangeLog
2004-08-27  Nick Clifton  <nickc@redhat.com>

	* gas/i386/i386.exp: Allow pcrel test for COFF targets as well,
	but not for PE targets.  Similarly for the absrel test.


Index: gas/testsuite/gas/i386/i386.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/i386/i386.exp,v
retrieving revision 1.25
diff -c -3 -p -r1.25 i386.exp
*** gas/testsuite/gas/i386/i386.exp	27 Aug 2004 07:10:30 -0000	1.25
--- gas/testsuite/gas/i386/i386.exp	27 Aug 2004 08:05:44 -0000
*************** if [expr ([istarget "i*86-*-*"] ||  [ist
*** 53,59 ****
       run_dump_test "jump"
       run_dump_test "ssemmx2"
       run_dump_test "sse2"
-     run_dump_test "absrel"
       run_dump_test "sub"
       run_dump_test "prescott"
       run_dump_test "divide"
--- 53,58 ----
*************** if [expr ([istarget "i*86-*-*"] ||  [ist
*** 65,70 ****
--- 64,76 ----
   	run_dump_test "reloc"
   	run_dump_test "jump16"
   	run_list_test "white" "-al --listing-lhs-width=3"
+
+ 	# These tests should in theory work for PE targets as well,
+ 	# but the relocs we currently produce are slightly different
+ 	# from those produced for ELF based toolchains.
+ 	# So for now we ignore PE targets.
+ 	run_dump_test "pcrel"
+ 	run_dump_test "absrel"
       }

       # ELF specific tests
*************** if [expr ([istarget "i*86-*-*"] ||  [ist
*** 77,83 ****
   	run_dump_test "tlsd"
   	run_dump_test "tlspic"
   	run_dump_test "tlsnopic"
- 	run_dump_test "pcrel"
       }

       # This is a PE specific test.
--- 83,88 ----



More information about the Binutils mailing list