This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: config/mips/x-mips -lmld and linux [bug]
- To: job bogan <job at piquin dot uchicago dot edu>
- Subject: Re: config/mips/x-mips -lmld and linux [bug]
- From: Robert Lipe <robertl at dgii dot com>
- Date: Sun, 6 Dec 1998 19:35:08 -0600
- Cc: egcs at cygnus dot com, egcs-patches at cygnus dot com
- References: <199812061145.FAA26784@piquin.uchicago.edu>
[ Please drop egcs from any discussion of this patch. ]
> egcs-1.1.1 is misdefining CLIB in gcc/Makefile when doing a make
> bootstrap on mips-unknown-linux-gnu.
When I first looked at it last week, I came to the conclusion that MIPS
support in EGCS for Linux was a hoax. You could probably graft this
patch into 1.1.1 pretty easily:
http://www.cygnus.com/ml/egcs-patches/1998-Dec/0052.html
You will probably also need to patch that patch with a patch like this
untested one making its debut on egcs-patches right now:
* configure.in: Support mips-linux in either endianness.
Index: configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.185
diff -u -p -r1.185 configure.in
--- configure.in 1998/12/04 00:32:32 1.185
+++ configure.in 1998/12/07 01:32:15
@@ -2281,10 +2281,13 @@ changequote([,])dnl
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
- mipsel-*-linux*) # Little endian Linux MIPS
+ mips*-*-linux*) # Linux MIPS, either endian.
xmake_file=x-linux
xm_file="xm-siglist.h ${xm_file}"
- tm_file="mips/elfl.h mips/linux.h"
+ case $machine in
+ mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
+ *) tm_file="mips/elf.h" ;;
+ esac
extra_parts="crtbegin.o crtend.o"
gnu_ld=yes
gas=yes
> the offending lib is coming from /gcc/config/mips/x-mips:
>
> # -lmld is so we can link collect2 running native.
> # -lmalloc is supposed to be faster than the normal malloc
> CLIB = -lmld
And things like this support my hoax theory...
> commenting that chunk of gcc/Makefile gets farther along in the build.
> (perhaps all the way, but i'm still many hours from seeing that...)
With the first patch, EGCS snapshots would bootstrap on the target mentioned
in the above URL.
Enjoy.
RJL