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]

[patch] add AVR __stack to RTEMS crt0 stub.


Hi,

Could somebody please apply the patch below to newlib.

It adds a dummy char *__stack (Referenced by GCC) to RTEMS crt0.o stub.

TIA,
	Ralf
 
2004-09-23  Ralf Corsepius <ralf_corsepius@rtems.org>

	* libc/sys/rtems/crt0.c: Add stub "__stack" for AVR support.


Index: newlib/libc/sys/rtems/crt0.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/rtems/crt0.c,v
retrieving revision 1.7
diff -u -r1.7 crt0.c
--- newlib/libc/sys/rtems/crt0.c	8 Jan 2004 19:25:21 -0000	1.7
+++ newlib/libc/sys/rtems/crt0.c	23 Sep 2004 08:50:26 -0000
@@ -122,3 +122,11 @@
 asm (".equ    V_BSD_OS, 66" );
 asm (".equ    V_EPI_OS, 69" );
 #endif
+
+#if defined(__AVR__)
+/*
+ * Initial stack pointer address "__stack"
+ *  hard coded into GCC instead of providing it through ldscripts
+ */
+const char* __stack ;
+#endif

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