From 45c8bb8f8cd221a0f4ad3c920a315eacea4fca94 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 31 Aug 2005 20:39:43 +0000 Subject: 2005-08-31 Paul Brook * 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. --- newlib/libc/sys/arm/aeabi_atexit.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 newlib/libc/sys/arm/aeabi_atexit.c (limited to 'newlib/libc/sys/arm/aeabi_atexit.c') diff --git a/newlib/libc/sys/arm/aeabi_atexit.c b/newlib/libc/sys/arm/aeabi_atexit.c new file mode 100644 index 000000000..4b600e250 --- /dev/null +++ b/newlib/libc/sys/arm/aeabi_atexit.c @@ -0,0 +1,10 @@ +#include + +/* 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); +} -- cgit v1.2.3