summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/rtems/crt0.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-01-16 22:37:54 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-01-16 22:37:54 +0000
commitc3e92877a95d86163826fe1b5ad9a943a4989542 (patch)
tree47a20f26e9d2c6713d8ca68bb4952008819d961d /newlib/libc/sys/rtems/crt0.c
parent92febe6b7ac8c46c3a9281a0ad691ced9ac6a361 (diff)
downloadcygnal-c3e92877a95d86163826fe1b5ad9a943a4989542.tar.gz
cygnal-c3e92877a95d86163826fe1b5ad9a943a4989542.tar.bz2
cygnal-c3e92877a95d86163826fe1b5ad9a943a4989542.zip
2003-01-16 Joel Sherrill <joel@OARcorp.com>
* libc/sys/rtems/include/limits.h, libc/sys/rtems/sys/param.h, libc/sys/rtems/sys/syslimits.h: Update to be in sync with what constants are defined in each file in the shared versions in libc/include. * libc/sys/rtems/crt0.c: Define extra symbols on SH and HP-PA to autoconf can link programs. * libc/include/machine/types.h: Explicitly specify signed on intXX_t types to ensure they are signed.
Diffstat (limited to 'newlib/libc/sys/rtems/crt0.c')
-rw-r--r--newlib/libc/sys/rtems/crt0.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
index e5f67c006..99b91feea 100644
--- a/newlib/libc/sys/rtems/crt0.c
+++ b/newlib/libc/sys/rtems/crt0.c
@@ -41,6 +41,8 @@ memset() {}
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 @@ int __EH_FRAME_BEGIN__;
asm ( "\$global\$:");
*/
+ asm (".text");
+ asm (".global");
+ asm (".EXPORT $$dyncall,ENTRY");
+ asm ("$$dyncall:");
int atexit(void (*function)(void)) { return 0; }
#endif