diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2015-12-21 11:49:28 -0500 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2015-12-21 11:49:28 -0500 |
commit | d2bb300b9bb7917d33e3bc37fca3bf6ee6e5fcc4 (patch) | |
tree | 5b55b35d828623191420773e7b0e5a42387f0107 /newlib/libc/stdlib/on_exit_args.h | |
parent | ddb7e770dd48a97fe80cca3ab3b26d85f3ac5139 (diff) | |
download | newlib-d2bb300b9bb7917d33e3bc37fca3bf6ee6e5fcc4.zip newlib-d2bb300b9bb7917d33e3bc37fca3bf6ee6e5fcc4.tar.gz newlib-d2bb300b9bb7917d33e3bc37fca3bf6ee6e5fcc4.tar.bz2 |
Add static instance of _on_exit_args for _REENT_SMALL platforms.
2015-12-21 Freddie Chopin <freddie.chopin@gmail.com>
* libc/stdlib/on_exit_args.{c,h}: New files.
* libc/stdlib/Makefile.am: Add new source file.
* libc/stdlib/Makefile.in: Regenerate.
* libc/stdlib/__atexit.c (__register_exitproc): Initialize
_on_exit_args_ptr field of _GLOBAL_ATEXIT on first run.
* libc/stdlib/on_exit.c: Force linking of static instance of
_on_exit_args.
* libc/stdlib/cxa_atexit.c: Likewise.
Diffstat (limited to 'newlib/libc/stdlib/on_exit_args.h')
-rw-r--r-- | newlib/libc/stdlib/on_exit_args.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/on_exit_args.h b/newlib/libc/stdlib/on_exit_args.h new file mode 100644 index 0000000..c54ad1e --- /dev/null +++ b/newlib/libc/stdlib/on_exit_args.h @@ -0,0 +1,12 @@ +#ifndef NEWLIB_CYGWIN_NEWLIB_LIBC_STDLIB_ON_EXIT_ARGS_H_ +#define NEWLIB_CYGWIN_NEWLIB_LIBC_STDLIB_ON_EXIT_ARGS_H_ + +#include <reent.h> + +#ifdef _REENT_SMALL + +extern struct _on_exit_args * const __on_exit_args; + +#endif /* def _REENT_SMALL */ + +#endif /* def NEWLIB_CYGWIN_NEWLIB_LIBC_STDLIB_ON_EXIT_ARGS_H_ */ |