Redo __aeabi_atexit by shuffling the arguments and dropping the code in

libstdc++.
This commit is contained in:
joerg 2015-04-19 18:15:26 +00:00
parent 7141992348
commit 66e8846b8d
2 changed files with 11 additions and 4 deletions

View File

@ -23,7 +23,7 @@
#include <cxxabi.h>
#if defined(__arm__) && defined(__ARM_EABI__)
#if defined(__arm__) && defined(__ARM_EABI__) && !defined(__NetBSD__)
namespace __aeabiv1
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: atexit.c,v 1.28 2015/04/18 21:44:31 joerg Exp $ */
/* $NetBSD: atexit.c,v 1.29 2015/04/19 18:15:26 joerg Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: atexit.c,v 1.28 2015/04/18 21:44:31 joerg Exp $");
__RCSID("$NetBSD: atexit.c,v 1.29 2015/04/19 18:15:26 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include "reentrant.h"
@ -136,7 +136,14 @@ __libc_atexit_init(void)
* http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor
*/
#if defined(__ARM_EABI__) && !defined(lint)
__strong_alias(__aeabi_atexit,__cxa_atexit);
int
__aeabi_atexit(void *arg, void (*func)(void *), void *dso);
int
__aeabi_atexit(void *arg, void (*func)(void *), void *dso)
{
return __cxa_atexit(func, arg, dso);
}
#endif
int