This is the mail archive of the binutils@sourceware.cygnus.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: make check on mipsel-linux


>>>>> Maciej W Rozycki writes:

Maciej>  Hmm, the patch seems to be incorrect -- mipsel-linux uses ld.so.1 per ABI
Maciej> specification and not ld-linux.so* as the dynamic linker (at least on
Maciej> glibc systems).  I'd replace `fgrep ld-linux.so' with `grep "ld.*\.so"'
Maciej> (hopefully the quotation is understandable) above, to be on the safe side. 
Maciej> The same applies to the sed script.

I guess we could even use /lib/ld.so.1 directly.  I've copied the m68k
entry.

Maciej>  Does anything use ld-linux.so* on mipsel-linux, BTW?  Hopefully nothing
Maciej> is going to introduce this mess here, too.  We do not need libc.so.4
Maciej> compatibility for mips*-linux. 

Ok, here comes a new patch.

1999-10-21  Andreas Jaeger  <aj@suse.de>

	* ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for 
	target "mips*-linux*".

Index: ld/configure.host
===================================================================
RCS file: /cvs/binutils/binutils/ld/configure.host,v
retrieving revision 1.6
diff -u -u -r1.6 configure.host
--- configure.host	1999/09/06 09:51:16	1.6
+++ configure.host	1999/10/22 17:36:57
@@ -130,6 +130,11 @@
   HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -L/usr/lib32 -lc `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o ; else ${CC} -print-file-name=crtend.o; fi` /usr/lib32/crtn.o -init __do_global_ctors -fini __do_global_dtors'
   ;;
 
+mips*linux*)
+  HOSTING_CRT0='-dynamic-linker /lib/ld.so.1 /usr/lib/crt1.o /usr/lib/crti.o `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`'
+  HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} --print-file-name=crtend.o; fi` /usr/lib/crtn.o'
+  ;;
+
 m68*-*-linux*aout*)
   HOSTING_CRT0=/usr/lib/crt0.o
   ;;

-- 
 Andreas Jaeger   
  SuSE Linux Labs aj@suse.de	
   private aj@arthur.rhein-neckar.de

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