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]

Re: 1.11.0 patch for rtems crt0.c


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


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