This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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]

RTEMS crt0.c patch


Recent modifications to gcc have made it reference more
symbols by default.  The RTEMS dummy crt0.c tries to 
satisfy these all so autoconf's link test works.

OK to commit?

2002-10-07      Joel Sherrill <joel@OARcorp.com>

        * libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
        dummy programs.


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985
2002-08-22	Joel Sherrill <joel@OARcorp.com>

	* libc/sys/rtems/crt0.c: Add even more symbols so gcc() can link
	dummy programs.

Index: libc/sys/rtems/crt0.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/rtems/crt0.c,v
retrieving revision 1.3
diff -u -r1.3 crt0.c
--- libc/sys/rtems/crt0.c	12 Apr 2002 21:12:19 -0000	1.3
+++ libc/sys/rtems/crt0.c	7 Oct 2002 20:10:14 -0000
@@ -23,16 +23,13 @@
 int rtems_gxx_mutex_unlock() { return -1; }
 int rtems_gxx_once() { return -1; }
 
-/* gcc 2.8.1 implicitly can generate references to these for at
- * least sparc-elf */
-#if (__GNUC__ == 2) && (__GNUC_MINOR__ == 8)
+/* gcc can implicitly generate references to these */
 strcmp() {}
 strcpy() {}
 strlen() {}
 memcmp() {}
 memcpy() {}
 memset() {}
-#endif
 
 /* The PowerPC expects certain symbols to be defined in the linker script. */
 
@@ -44,6 +41,14 @@
   int __FIXUP_START__;  int __FIXUP_END__;
   int __EXCEPT_START__; int __EXCEPT_END__;
   int __init;           int __fini;
+  int __CTOR_LIST__;    int __CTOR_END__;
+  int __DTOR_LIST__;    int __DTOR_END__;
+#endif
+
+/* The SH expects certain symbols to be defined in the linker script. */
+
+#if defined(__sh__)
+int __EH_FRAME_BEGIN__;
 #endif
 
 /*  The hppa expects this to be defined in the real crt0.s. 

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