mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-15 02:09:19 +08:00
45c8bb8f8c
* configure.host: Set have_crt0 to no for Arm targts when not providing syscalls. Set sys_dir=arm unconditionally. Default have_crt0 based on sys_dir. * configure.in: Use have_crt0. * libc/configure.in: Ditto. * libc/sys/configure.in: Ditto. * configure: Regenerate. * libc/configure: Regenerate. * libc/sys/configure: Regenerate. * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_atexit.c. Only build other files when providing syscalls. * libc/sys/arm/Makefile.in: Regenerate. * libc/sys/arm/aeabi_atexit.c: New file.
11 lines
310 B
C
11 lines
310 B
C
#include <stdlib.h>
|
|
|
|
/* Register a function to be called by exit or when a shared library
|
|
is unloaded. This routine is like __cxa_atexit, but uses the
|
|
calling sequence required by the ARM EABI. */
|
|
int
|
|
__aeabi_atexit (void *arg, void (*func) (void *), void *d)
|
|
{
|
|
return __cxa_atexit (func, arg, d);
|
|
}
|