aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorChris Demetriou <cgd@broadcom.com>2002-07-24 23:48:20 +0000
committerChris Demetriou <cgd@gcc.gnu.org>2002-07-24 16:48:20 -0700
commit8d1b7ba13bbe16749456b30cd8d8cf297cf9e41e (patch)
tree73a26fdb61b18a689972cd130ec8eaef8ec6f68a /gcc/config
parent1efccea3b1ed18d4acb0529c6226f52d26c154b2 (diff)
downloadgcc-8d1b7ba13bbe16749456b30cd8d8cf297cf9e41e.zip
gcc-8d1b7ba13bbe16749456b30cd8d8cf297cf9e41e.tar.gz
gcc-8d1b7ba13bbe16749456b30cd8d8cf297cf9e41e.tar.bz2
elf.h (STARTFILE_SPEC): Undo previous change.
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/mips/elf.h5
-rw-r--r--gcc/config/mips/elf64.h5
-rw-r--r--gcc/config/mips/isa3264.h7
3 files changed, 9 insertions, 8 deletions
diff --git a/gcc/config/mips/elf.h b/gcc/config/mips/elf.h
index 4bb2489..8e22e0b 100644
--- a/gcc/config/mips/elf.h
+++ b/gcc/config/mips/elf.h
@@ -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"
diff --git a/gcc/config/mips/elf64.h b/gcc/config/mips/elf64.h
index e170dfa..7aea668 100644
--- a/gcc/config/mips/elf64.h
+++ b/gcc/config/mips/elf64.h
@@ -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"
diff --git a/gcc/config/mips/isa3264.h b/gcc/config/mips/isa3264.h
index f71fdc1..fc2b289 100644
--- a/gcc/config/mips/isa3264.h
+++ b/gcc/config/mips/isa3264.h
@@ -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