This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[applied patch] undo MIPS crt0-related changes.
- From: cgd at broadcom dot com
- To: gcc-patches at gcc dot gnu dot org
- Cc: echristo at redhat dot com,geoffk at redhat dot com
- Date: 24 Jul 2002 16:48:40 -0700
- Subject: [applied patch] undo MIPS crt0-related changes.
undone, until a backward-compat solution is decided upon.
chris
===================================================================
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.
Index: config/mips/elf.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/elf.h,v
retrieving revision 1.38
diff -u -p -r1.38 elf.h
--- config/mips/elf.h 24 Jul 2002 17:14:33 -0000 1.38
+++ config/mips/elf.h 24 Jul 2002 23:46:21 -0000
@@ -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: config/mips/elf64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/elf64.h,v
retrieving revision 1.44
diff -u -p -r1.44 elf64.h
--- config/mips/elf64.h 24 Jul 2002 17:14:33 -0000 1.44
+++ config/mips/elf64.h 24 Jul 2002 23:46:21 -0000
@@ -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: config/mips/isa3264.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/isa3264.h,v
retrieving revision 1.6
diff -u -p -r1.6 isa3264.h
--- config/mips/isa3264.h 24 Jul 2002 17:14:33 -0000 1.6
+++ config/mips/isa3264.h 24 Jul 2002 23:46:21 -0000
@@ -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