arch/arc: Remove redundant __cxa_atexit from MWDT stubs

__cxa_atexit was originally defined by the IA64 C++ ABI, but it has been
adopted by other C++ implementations since then.  This function is already
present in lib/cpp/api/cpp_dtors.c, which is built by default when C++
support is enabled, so we don't need another copy in the MWDT-specific
code.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2024-11-05 22:17:43 -08:00 committed by Benjamin Cabé
commit a721291adc

View file

@ -8,14 +8,6 @@
__weak void *__dso_handle; __weak void *__dso_handle;
int __cxa_atexit(void (*destructor)(void *), void *objptr, void *dso)
{
ARG_UNUSED(destructor);
ARG_UNUSED(objptr);
ARG_UNUSED(dso);
return 0;
}
int atexit(void (*function)(void)) int atexit(void (*function)(void))
{ {
return 0; return 0;