This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[arm] Inhibit startup code for SymbianOS


The patch below stops gcc building/using the crt* startup code for SymbianOS. 
That OS provides its own versions of this code.

Tested by building arm-symbian-symbianelf cross.
Ok for mainline and csl-arm-branch?

Paul

2004-09-30  Paul Brook  <paul@codesourcery.com>

 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
 (ENDFILE_SPEC): Define.
 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.

Index: gcc/config/arm/symbian.h
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config/arm/symbian.h,v
retrieving revision 1.5.2.8
diff -u -p -r1.5.2.8 symbian.h
--- gcc/config/arm/symbian.h 3 Sep 2004 00:44:00 -0000 1.5.2.8
+++ gcc/config/arm/symbian.h 30 Sep 2004 12:13:39 -0000
@@ -39,10 +39,13 @@
   "%{!fshort-wchar:%{!fno-short-wchar:-fshort-wchar}} "
 #define CC1PLUS_SPEC CC1_SPEC
 
-/* Symbian OS does not use crt0.o, unlike the generic unknown-elf
+/* Symbian OS does not use crt*.o, unlike the generic unknown-elf
    configuration.  */
 #undef STARTFILE_SPEC
-#define STARTFILE_SPEC "crti%O%s crtbegin%O%s"
+#define STARTFILE_SPEC ""
+
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC ""
 
 /* Do not link with any libraries by default.  On Symbian OS, the user
    must supply all required libraries on the command line.  */
Index: gcc/config/arm/t-symbian
===================================================================
RCS file: /var/cvsroot/gcc-cvs/gcc/gcc/config/arm/t-symbian,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 t-symbian
--- gcc/config/arm/t-symbian 22 Sep 2004 15:40:31 -0000 1.1.2.5
+++ gcc/config/arm/t-symbian 30 Sep 2004 12:08:28 -0000
@@ -25,3 +25,6 @@ MULTILIB_DIRNAMES    = softfp
 # There is no C library to link against on Symbian OS -- at least when 
 # building GCC.
 SHLIB_LC = 
+
+# Symbian OS provides its own startup code.
+EXTRA_MULTILIB_PARTS=


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]