This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: 1.11.0 patch for rtems crt0.c
- From: "J. Johnston" <jjohnstn at redhat dot com>
- To: joel dot sherrill at OARcorp dot com
- Cc: newlib at sources dot redhat dot com
- Date: Thu, 16 Jan 2003 17:41:57 -0500
- Subject: Re: 1.11.0 patch for rtems crt0.c
- Organization: Red Hat Inc.
- References: <3E22BFE8.8C74003D@OARcorp.com>
Patch checked in.
-- Jeff J.
Joel Sherrill wrote:
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.
------------------------------------------------------------------------
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