summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/rtems/crt0.c
diff options
context:
space:
mode:
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