summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/on_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/on_exit.c')
-rw-r--r--newlib/libc/stdlib/on_exit.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/on_exit.c b/newlib/libc/stdlib/on_exit.c
index b7fd130dc..a405b1b51 100644
--- a/newlib/libc/stdlib/on_exit.c
+++ b/newlib/libc/stdlib/on_exit.c
@@ -58,6 +58,15 @@ Supporting OS subroutines required: None
#include <stdlib.h>
#include "atexit.h"
+#ifdef _REENT_SMALL
+
+#include "on_exit_args.h"
+
+/* force linking of static instance of _on_exit_args */
+const void * const __on_exit_dummy = &__on_exit_args;
+
+#endif /* def _REENT_SMALL */
+
/*
* Register a function to be performed at exit.
*/