From 4d032a67aaa632dde65c7b1d868309bd51ba9952 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 26 Aug 1992 21:21:55 +0000 Subject: [PATCH] Pass -shared/-non_shared to MIPS 3.0 linker if passed. From-SVN: r1968 --- gcc/config/mips/bsd-4.h | 2 +- gcc/config/mips/dec-osf1.h | 12 +++++++++++- gcc/config/mips/iris3.h | 2 +- gcc/config/mips/mips.h | 2 +- gcc/config/mips/news5.h | 2 +- gcc/config/mips/svr3-4.h | 2 +- gcc/config/mips/svr4-4.h | 2 +- gcc/config/mips/ultrix.h | 2 ++ 8 files changed, 19 insertions(+), 7 deletions(-) diff --git a/gcc/config/mips/bsd-4.h b/gcc/config/mips/bsd-4.h index 6235340fe7d..586741cbb1a 100644 --- a/gcc/config/mips/bsd-4.h +++ b/gcc/config/mips/bsd-4.h @@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{!mgas: \ %{EB} %{!EB: -EB} \ %{EL: %e-EL not supported} \ - %{bestGnum} \ + %{bestGnum} %{shared} %{non_shared} \ %{mips1} %{mips2} %{mips3} \ -systype /bsd43/ }" diff --git a/gcc/config/mips/dec-osf1.h b/gcc/config/mips/dec-osf1.h index 04491364601..55cc653adad 100644 --- a/gcc/config/mips/dec-osf1.h +++ b/gcc/config/mips/dec-osf1.h @@ -17,10 +17,20 @@ 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, 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define DECSTATION #define DEC_OSF1 #define CPP_PREDEFINES "-D__ANSI_COMPAT \ -DMIPSEL -DR3000 -DSYSTYPE_BSD -D_SYSTYPE_BSD -Dbsd4_2 -Dhost_mips -Dmips -Dosf -Dunix" +#define LINK_SPEC "\ +%{G*} \ +%{!mgas: \ + %{EL} %{!EL: -EL} \ + %{EB: %e-EB not supported} \ + %{mips1} %{mips2} %{mips3} \ + %{bestGnum} %{shared} %{non_shared}}" + #include "decstatn.h" + +/* turn off collect2 COFF support, since ldfcn now has elf declaration */ +#undef OBJECT_FORMAT_COFF diff --git a/gcc/config/mips/iris3.h b/gcc/config/mips/iris3.h index 8536b1e1fd7..738a70392ef 100644 --- a/gcc/config/mips/iris3.h +++ b/gcc/config/mips/iris3.h @@ -52,7 +52,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define LINK_SPEC "\ %{G*} \ %{!mgas: %{mips1} %{mips2} %{mips3} \ - %{bestGnum}}" + %{bestGnum} %{shared} %{non_shared}}" /* Always use 1 for .file number. I [meissner@osf.org] wonder why IRIS needs this. */ diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index fd748b43552..6ce78b96ea0 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -424,7 +424,7 @@ while (0) %{EB} %{!EB:-EB} \ %{EL: %e-EL not supported} \ %{mips1} %{mips2} %{mips3} \ - %{bestGnum}}" + %{bestGnum} %{shared} %{non_shared}}" #endif /* LINK_SPEC defined */ /* Define this macro meaning that `gcc' should find the library diff --git a/gcc/config/mips/news5.h b/gcc/config/mips/news5.h index bfcf9975a41..8499e47339e 100644 --- a/gcc/config/mips/news5.h +++ b/gcc/config/mips/news5.h @@ -35,7 +35,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{G*} \ %{!mgas: %{mips1} %{mips2} %{mips3} \ %{EB} %{!EB:-EB} %{EL: %e-EL not supported} \ - %{bestGnum}}" + %{bestGnum} %{shared} %{non_shared}}" #define LIB_SPEC "\ %{ZBSD43: -L/usr/ucblib -lucb -lresolv -lsocket -lnsl} \ diff --git a/gcc/config/mips/svr3-4.h b/gcc/config/mips/svr3-4.h index 264132c57c9..81d5edb1202 100644 --- a/gcc/config/mips/svr3-4.h +++ b/gcc/config/mips/svr3-4.h @@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{!mgas: \ %{EB} %{!EB:-EB} \ %{EL: %e-EL not supported} \ - %{bestGnum} \ + %{bestGnum} %{shared} %{non_shared} \ %{mips1} %{mips2} %{mips3} \ -systype /sysv/}" diff --git a/gcc/config/mips/svr4-4.h b/gcc/config/mips/svr4-4.h index f19ddc88ad8..9b90eb8ad7c 100644 --- a/gcc/config/mips/svr4-4.h +++ b/gcc/config/mips/svr4-4.h @@ -36,7 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{!mgas: \ %{EB} %{!EB:-EB} \ %{EL: %e-EL not supported} \ - %{bestGnum} \ + %{bestGnum} %{shared} %{non_shared} \ %{mips1} %{mips2} %{mips3} \ -systype /svr4/}" diff --git a/gcc/config/mips/ultrix.h b/gcc/config/mips/ultrix.h index ae27b869a3d..e4983ce327b 100644 --- a/gcc/config/mips/ultrix.h +++ b/gcc/config/mips/ultrix.h @@ -43,6 +43,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{.m: -D__LANGUAGE_OBJECTIVE_C__ -D__LANGUAGE_OBJECTIVE_C} \ %{!.S: -D__LANGUAGE_C__ -D__LANGUAGE_C %{!ansi:-DLANGUAGE_C}}" +#ifndef LINK_SPEC #define LINK_SPEC "\ %{G*} \ %{!mgas: \ @@ -50,6 +51,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{EB: %e-EB not supported} \ %{mips1} %{mips2} %{mips3} \ %{bestGnum}}" +#endif #define LIB_SPEC "%{p:-lprof1} %{pg:-lprof1} -lc" -- 2.30.2