Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-06-06 11:31:35 +00:00
Code Issues Projects Releases Wiki Activity
musl/arch/arm/src/__aeabi_atexit.c

7 lines
167 B
C
Raw Normal View History

arm: add __aeabi_atexit() arm eabi requires this symbol for static C++ dtors. usually it is provided by libstdc++, but when a C++ program doesn't use the std lib (free-standing), the libc has to provide it. this was encountered while building transmission, which depends on such a C++ library (libutp). this function is nearly identical to __cxa_atexit, but it has the order of argumens swapped for "performance reasons". see page 25 of http://infocenter.arm.com/help/topic/com.arm.doc.ihi0043d/IHI0043D_rtabi.pdf there are other aeabi specific C++ support functions missing, but it is not clear yet that GCC makes use of them so we omit them for the moment.
2013-02-06 02:15:51 +01:00
int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
int __aeabi_atexit (void *obj, void (*func) (void *), void *d)
{
return __cxa_atexit (func, obj, d);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 300ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API