1.11.0 patch for rtems crt0.c
J. Johnston
jjohnstn@redhat.com
Thu Jan 16 22:41:00 GMT 2003
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
>
More information about the Newlib
mailing list