[liba] Define __aeabi_atexit

Change-Id: Ibf8d2f5453d457d62989e0adcc070ae09e1c9074
This commit is contained in:
Romain Goyet
2016-12-08 14:50:12 +01:00
parent 7fb1f78f6f
commit a0ad3c76a4
2 changed files with 8 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ tests += $(addprefix liba/test/, \
# The use of aeabi-rt could be made conditional to an AEABI target.
# In practice we're always using liba on such a target.
objs += $(addprefix liba/src/aeabi-rt/, \
atexit.o \
memclr.o \
memcpy.o \
)

View File

@@ -0,0 +1,7 @@
/* See the "Run-time ABI for the ARM Architecture", Section 4.4.5 */
int __cxa_atexit(void (* dtor)(void * this), void * object, void * handle);
int __aeabi_atexit(void * object, void (*destroyer)(void *), void * dso_handle) {
return __cxa_atexit(destroyer, object, dso_handle);
}