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]

1.11.0 patch for rtems crt0.c


The attached patch tinkers a bit more with RTEMS dummy crt0.o so
autoconf can now link programs on more targets.

2003-01-13      Joel Sherrill <joel@OARcorp.com>

        * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
        autoconf can link 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
2003-01-13	Joel Sherrill <joel@OARcorp.com>

	* libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to
	autoconf can link programs.

diff -uNr /usr1/rtems/work-tools/original/newlib-1.11.0/newlib/libc/sys/rtems/crt0.c newlib-1.11.0/newlib/libc/sys/rtems/crt0.c
--- /usr1/rtems/work-tools/original/newlib-1.11.0/newlib/libc/sys/rtems/crt0.c	Tue Oct  8 08:09:05 2002
+++ newlib-1.11.0/newlib/libc/sys/rtems/crt0.c	Mon Jan  6 11:07:35 2003
@@ -41,6 +41,8 @@
   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. */
@@ -61,6 +63,10 @@
   asm ( "\$global\$:");
 */
 
+  asm (".text");
+  asm (".global");
+  asm (".EXPORT $$dyncall,ENTRY");
+  asm ("$$dyncall:");
   int atexit(void (*function)(void)) { return 0; }
 #endif
 

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