OSDN Git Service

* config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
authorgavin <gavin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Dec 1999 19:50:46 +0000 (19:50 +0000)
committergavin <gavin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Dec 1999 19:50:46 +0000 (19:50 +0000)
* config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
* config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.

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

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

index bcc9e4b..5c0ab9c 100644 (file)
@@ -1,3 +1,9 @@
+1999-12-01  Mark Salter <msalter@cygnus.com>
+
+       * config/mips/elf.h (STARTFILE_SPEC): Add no-crt0.
+       * config/mips/elf64.h (STARTFILE_SPEC): Add no-crt0.
+       * config/mips/mips.h (TARGET_SWITCHES): Add no-crt0.
+
 Tue Nov 30 15:20:52 MET 1999  Jan Hubicka  <hubicka@freesoft.cz>
 
        * i386.c (ix86_expand_move): Never add clobbers to move patterns.
index 690b005..9299ac8 100644 (file)
@@ -358,7 +358,7 @@ func_ptr __DTOR_END__[1] = { (func_ptr) 0 };
 #define LIB_SPEC ""
 
 #undef  STARTFILE_SPEC
-#define STARTFILE_SPEC "crtbegin%O%s crt0%O%s"
+#define STARTFILE_SPEC "crtbegin%O%s %{!mno-crt0:crt0%O%s}"
 
 #undef  ENDFILE_SPEC
 #define ENDFILE_SPEC "crtend%O%s"
index 248dd32..5d6632e 100644 (file)
@@ -338,7 +338,7 @@ func_ptr __DTOR_END__[1] = { (func_ptr) 0 };
 #define LIB_SPEC ""
 
 #undef  STARTFILE_SPEC
-#define STARTFILE_SPEC "crtbegin%O%s crt0%O%s"
+#define STARTFILE_SPEC "crtbegin%O%s %{!mno-crt0:crt0%O%s}"
 
 #undef  ENDFILE_SPEC
 #define ENDFILE_SPEC "crtend%O%s"
index e792226..0f54a8f 100644 (file)
@@ -329,6 +329,8 @@ extern void         sbss_section PARAMS ((void));
 
 #define TARGET_SWITCHES                                                        \
 {                                                                      \
+  {"no-crt0",          0,                                               \
+     "No default crt0.o" },                                            \
   {"int64",              MASK_INT64 | MASK_LONG64,                     \
      "Use 64-bit int type"},                                           \
   {"long64",             MASK_LONG64,                                  \