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]

Re: sh-linux is now broken


H . J . Lu wrote:
 > Could you please tell me why you made sh-linux little endian in gas and
 > big endian in ld?

Err... it's just my mistake.  Perhaps, I need glasses.

 > Shouldn't you remove the "sh-*-linux*" entry from ld/configure.tgt?

It's cross compiling target (which supports all of
{sh3,sh4,sh3eb,sh4eb}-linux).  We support individual specific target
for native system.

Here's a patch.  Please apply.

ld/ChangeLog

2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>

	* configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
	as little endian default and to support big endian.
	
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.66
diff -u -3 -p -r1.66 configure.tgt
--- configure.tgt	2001/10/31 09:50:09	1.66
+++ configure.tgt	2001/11/01 00:53:40
@@ -229,8 +229,8 @@ h8500-*-hms* | h8500-*-coff*)
 			targ_extra_emuls="h8500s h8500b h8500m h8500c"
 			;;
 sh-*-linux*)
-			targ_emul=shelf_linux
-			targ_extra_emuls=shlelf_linux
+			targ_emul=shlelf_linux
+			targ_extra_emuls=shelf_linux
 			targ_extra_libpath=shelf_linux
 			;;
 sh*eb-*-linux*)
---------------------------


And I've done "make check" for sh-linux target (on i686-linux).

I'll look into the unexpected failures and unexpected successes.

---------------------------
Test Run By gniibe on Thu Nov  1 10:10:24 2001
Target is sh-unknown-linux-gnu
Host   is i686-pc-linux-gnu

		=== binutils Summary ===

# of expected passes		27
# of expected failures		1
# of untested testcases		4

		=== gas Summary ===

# of expected passes		74
# of unexpected failures	2
# of expected failures		1
# of unsupported tests		2

-------- Unexpected failures were:
Running /home/gniibe/gniibe/c/src/gas/testsuite/gas/sh/basic.exp ...
FAIL: fp.s: floating point tests (sh3e)
FAIL: SH DSP basic instructions
--------

		=== ld Summary ===

# of expected passes		20
# of unexpected failures	3
# of unexpected successes	2
# of expected failures		1
# of unresolved testcases	2

-------- Unexpected failures were:
Running /home/gniibe/gniibe/c/src/ld/testsuite/ld-selective/selective.exp ...
FAIL: selective4
FAIL: selective5

Running /home/gniibe/gniibe/c/src/ld/testsuite/ld-sh/sh.exp ...
FAIL: SH relaxing
--------

-------- Unexpected successes were:
Running /home/gniibe/gniibe/c/src/ld/testsuite/ld-undefined/undefined.exp ...
XPASS: undefined function
XPASS: undefined line
-------- 
-- 


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