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


On 21 Oct 1999, Andreas Jaeger wrote:

> I tried to run make check with the current cvs version of binutils on
> mipsel-linux (with an egcs 1.0.2 patch for mips support).
[...]
> --- ld/configure.host.~1~	Mon Sep  6 16:27:30 1999
> +++ ld/configure.host	Thu Oct 21 12:06:07 1999
> @@ -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='-p -dynamic-linker `fgrep ld-linux.so \`${CC} --print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ 	][ 	]*\(.*/ld-linux.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC} --print-file-name=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` -L`dirname \`${CC} --print-file-name=libc.so\`` -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` `${CC} --print-file-name=crtn.o`'
> +
> +
>  m68*-*-linux*aout*)
>    HOSTING_CRT0=/usr/lib/crt0.o
>    ;;

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

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

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


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