1 /* 2 * Copyright (c) 2016 Wind River Systems, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /* 8 * @file 9 * @brief Basic C++ destructor module for globals for ARM 10 */ 11 12 #include <toolchain.h> 13 14 EXTERN_C int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso); 15 16 /** 17 * @brief Register destructor for a global object 18 * 19 * @param objptr global object pointer 20 * @param destructor the global object destructor function 21 * @param dso Dynamic Shared Object handle for shared libraries 22 * 23 * Wrapper for __cxa_atexit() 24 */ __aeabi_atexit(void * objptr,void (* destructor)(void *),void * dso)25int __aeabi_atexit(void *objptr, void (*destructor)(void *), void *dso) 26 { 27 return __cxa_atexit(destructor, objptr, dso); 28 } 29