Peter Mitsis | 8e35cc8 | 2016-01-13 13:02:56 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 Wind River Systems, Inc. |
| 3 | * |
David B. Kinder | ac74d8b | 2017-01-18 17:01:01 -0800 | [diff] [blame] | 4 | * SPDX-License-Identifier: Apache-2.0 |
Peter Mitsis | 8e35cc8 | 2016-01-13 13:02:56 -0500 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /* |
| 8 | * @file |
| 9 | * @brief Basic C++ destructor module for globals |
| 10 | * |
| 11 | */ |
| 12 | |
| 13 | #include <toolchain.h> |
| 14 | |
Michael Hope | 7383814 | 2018-03-26 20:32:05 +0200 | [diff] [blame] | 15 | __weak void *__dso_handle; |
Peter Mitsis | 8e35cc8 | 2016-01-13 13:02:56 -0500 | [diff] [blame] | 16 | |
| 17 | /** |
| 18 | * @brief Register destructor for a global object |
| 19 | * |
| 20 | * @param destructor the global object destructor function |
| 21 | * @param objptr global object pointer |
| 22 | * @param dso Dynamic Shared Object handle for shared libraries |
| 23 | * |
| 24 | * Function does nothing at the moment, assuming the global objects |
| 25 | * do not need to be deleted |
| 26 | * |
| 27 | * @return N/A |
| 28 | */ |
| 29 | int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso) |
| 30 | { |
| 31 | ARG_UNUSED(destructor); |
| 32 | ARG_UNUSED(objptr); |
| 33 | ARG_UNUSED(dso); |
| 34 | return 0; |
| 35 | } |