]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
elf.h (STARTFILE_SPEC): Undo previous change.
authorChris Demetriou <cgd@broadcom.com>
Wed, 24 Jul 2002 23:48:20 +0000 (23:48 +0000)
committerChris Demetriou <cgd@gcc.gnu.org>
Wed, 24 Jul 2002 23:48:20 +0000 (16:48 -0700)
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.

From-SVN: r55729

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

index d80a5f7173a02075195d49ed2c8c3e6a5c01b694..cfd32ecf22c86cdc2fa5c430402184c52b5b2b97 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 4bb2489cef27107bccfd4d940be81d7d69789663..8e22e0bcd6afa66509d4026000175883263e2ed0 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 e170dfa389818c0fe38f09e48cfb7bc7e1eaa72b..7aea6684a766386b437f672ecb3c5d68a50e1afb 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 f71fdc1d4cfeb89c92420b6f73002436ea1d938c..fc2b2894225b6c48f73f4c05eb7f379dd1329fbf 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