2002-07-24 Chris Demetriou <cgd@broadcom.com>
authorcgd <cgd@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jul 2002 23:48:20 +0000 (23:48 +0000)
committercgd <cgd@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jul 2002 23:48:20 +0000 (23:48 +0000)
        * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
        * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
        * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55729 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/elf.h
gcc/config/mips/elf64.h
gcc/config/mips/isa3264.h

index d80a5f7..cfd32ec 100644 (file)
@@ -1,3 +1,9 @@
+2002-07-24  Chris Demetriou  <cgd@broadcom.com>
+
+       * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
+       * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
+       * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
+
 2002-07-24  Richard Henderson  <rth@redhat.com>
 
        * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
index 4bb2489..8e22e0b 100644 (file)
@@ -263,11 +263,8 @@ void FN ()                                                            \
 #undef LIB_SPEC
 #define LIB_SPEC ""
 
-/* Don't link with crt0 files, let the linker start files specify
-   the appropriate crt0 file.  This is overridden by non-embedded
-   targets which wish to provide a crt0.o by default.  */
 #undef  STARTFILE_SPEC
-#define STARTFILE_SPEC "crti%O%s crtbegin%O%s"
+#define STARTFILE_SPEC "crti%O%s crtbegin%O%s %{!mno-crt0:crt0%O%s}"
 
 #undef  ENDFILE_SPEC
 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
index e170dfa..7aea668 100644 (file)
@@ -237,11 +237,8 @@ void FN ()                                                            \
 #undef LIB_SPEC
 #define LIB_SPEC ""
 
-/* Don't link with crt0 files, let the linker start files specify
-   the appropriate crt0 file.  This is overridden by non-embedded
-   targets which wish to provide a crt0.o by default.  */
 #undef  STARTFILE_SPEC
-#define STARTFILE_SPEC "crti%O%s crtbegin%O%s"
+#define STARTFILE_SPEC "crti%O%s crtbegin%O%s %{!mno-crt0:crt0%O%s}"
 
 #undef  ENDFILE_SPEC
 #define ENDFILE_SPEC "crtend%O%s crtn%O%s"
index f71fdc1..fc2b289 100644 (file)
@@ -36,3 +36,10 @@ Boston, MA 02111-1307, USA.  */
 #endif
 
 #include "mips/elf.h"
+
+#if MIPS_ABI_DEFAULT == ABI_MEABI
+/* For MEABI, don't link with crt0 files, let the linker start files specify
+   the appropriate crt0 file.  */
+#undef  STARTFILE_SPEC
+#define STARTFILE_SPEC "crti%O%s crtbegin%O%s %{!mno-crt0: }"
+#endif