configure.in (mipsel-*-linux*): New target.

* configure.in (mipsel-*-linux*): New target.
	* mips/linux.h: New file, based on other Linux targets.

From-SVN: r24080
This commit is contained in:
Robert Lipe 1998-12-04 00:32:33 +00:00 committed by Jeff Law
parent 0fcff08299
commit 18cae839b4
4 changed files with 104 additions and 11 deletions

View file

@ -1,3 +1,8 @@
Fri Dec 4 01:29:28 1998 Robert Lipe <robertl@dgii.com>
* configure.in (mipsel-*-linux*): New target.
* mips/linux.h: New file, based on other Linux targets.
Thu Dec 3 11:19:50 1998 Mike Stump <mrs@wrs.com>
* gthr-vxworks.h (__ehdtor): Fix memory leak. The delete hook

70
gcc/config/mips/linux.h Normal file
View file

@ -0,0 +1,70 @@
/* Definitions for MIPS running Linux-based GNU systems with ELF format.
Copyright (C) 1998 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* Required to keep collect2.c happy */
#undef OBJECT_FORMAT_COFF
#define HAVE_ATEXIT
/* If we don't set MASK_ABICALLS, we can't default to PIC. */
#undef TARGET_DEFAULT
#define TARGET_DEFAULT (MASK_ABICALLS|MASK_GAS)
/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
provides part of the support for getting C++ file-scope static
object constructed before entering `main'. */
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
"%{!shared: \
%{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
/* Provide a ENDFILE_SPEC appropriate for GNU/Linux. Here we tack on
the GNU/Linux magical crtend.o file (see crtstuff.c) which
provides part of the support for getting C++ file-scope static
object constructed before entering `main', followed by a normal
GNU/Linux "finalizer" file, `crtn.o'. */
#undef ENDFILE_SPEC
#define ENDFILE_SPEC \
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
/* From iris5.h */
/* -G is incompatible with -KPIC which is the default, so only allow objects
in the small data section if the user explicitly asks for it. */
#undef MIPS_DEFAULT_GVALUE
#define MIPS_DEFAULT_GVALUE 0
/* Borrowed from sparc/linux.h */
#undef LINK_SPEC
#define LINK_SPEC "-Y P,/usr/lib %{shared:-shared} \
%{!shared: \
%{!ibcs: \
%{!static: \
%{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
%{static:-static}}}"
#undef SUBTARGET_ASM_SPEC
#define SUBTARGET_ASM_SPEC "-KPIC"

23
gcc/configure vendored
View file

@ -3144,7 +3144,7 @@ for machine in $build $host $target; do
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hpux10*)
hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
xm_file=pa/xm-pahpux.h
@ -3182,7 +3182,7 @@ for machine in $build $host $target; do
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hpux*)
hppa1.1-*-hpux* | hppa2*-*-hpux*)
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
@ -3205,7 +3205,7 @@ for machine in $build $host $target; do
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hiux*)
hppa1.1-*-hiux* | hppa2*-*-hiux*)
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
xm_file=pa/xm-pahpux.h
@ -4472,6 +4472,15 @@ for machine in $build $host $target; do
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
mipsel-*-linux*) # Little endian Linux MIPS
xmake_file=x-linux
xm_file="xm-siglist.h ${xm_file}"
tm_file="mips/elfl.h mips/linux.h"
extra_parts="crtbegin.o crtend.o"
gnu_ld=yes
gas=yes
fixincludes=Makefile.in
;;
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
tm_file="mips/news4.h ${tm_file}"
if test x$stabs = xyes; then
@ -5583,7 +5592,7 @@ fi
if test x$enable_haifa = x
then
case $target in
alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
enable_haifa=yes;;
esac
fi
@ -5895,7 +5904,7 @@ fi
# Figure out what assembler alignment features are present.
echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
echo "configure:5899: checking assembler alignment features" >&5
echo "configure:5908: checking assembler alignment features" >&5
gcc_cv_as=
gcc_cv_as_alignment_features=
gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
@ -5968,7 +5977,7 @@ fi
echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
echo "configure:5972: checking assembler subsection support" >&5
echo "configure:5981: checking assembler subsection support" >&5
gcc_cv_as_subsections=
if test x$gcc_cv_as != x; then
# Check if we have .subsection
@ -6240,7 +6249,7 @@ fi
# Warn if using init_priority.
echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
echo "configure:6244: checking whether to enable init_priority by default" >&5
echo "configure:6253: checking whether to enable init_priority by default" >&5
if test x$enable_init_priority != xyes; then
enable_init_priority=no
fi

View file

@ -861,7 +861,7 @@ changequote([,])dnl
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hpux10*)
hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
xm_file=pa/xm-pahpux.h
@ -899,7 +899,7 @@ changequote([,])dnl
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hpux*)
hppa1.1-*-hpux* | hppa2*-*-hpux*)
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
xm_file=pa/xm-pahpux.h
@ -922,7 +922,7 @@ changequote([,])dnl
install_headers_dir=install-headers-cpio
use_collect2=yes
;;
hppa1.1-*-hiux*)
hppa1.1-*-hiux* | hppa2*-*-hiux*)
target_cpu_default=1
tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
xm_file=pa/xm-pahpux.h
@ -2281,6 +2281,15 @@ changequote([,])dnl
fixincludes=fixinc.wrap
tmake_file=t-netbsd
;;
mipsel-*-linux*) # Little endian Linux MIPS
xmake_file=x-linux
xm_file="xm-siglist.h ${xm_file}"
tm_file="mips/elfl.h mips/linux.h"
extra_parts="crtbegin.o crtend.o"
gnu_ld=yes
gas=yes
fixincludes=Makefile.in
;;
mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
tm_file="mips/news4.h ${tm_file}"
if test x$stabs = xyes; then
@ -3418,7 +3427,7 @@ fi
if test x$enable_haifa = x
then
case $target in
alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
enable_haifa=yes;;
esac
fi