Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib Add __aeabi_atexit alias for another case of...
details: https://anonhg.NetBSD.org/src/rev/851211668c14
branches: trunk
changeset: 807683:851211668c14
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Apr 18 21:44:31 2015 +0000
description:
Add __aeabi_atexit alias for another case of NIH on ARM.
diffstat:
lib/libc/stdlib/atexit.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 4e0e21fca3f3 -r 851211668c14 lib/libc/stdlib/atexit.c
--- a/lib/libc/stdlib/atexit.c Sat Apr 18 18:32:16 2015 +0000
+++ b/lib/libc/stdlib/atexit.c Sat Apr 18 21:44:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atexit.c,v 1.27 2015/01/20 18:31:25 christos Exp $ */
+/* $NetBSD: atexit.c,v 1.28 2015/04/18 21:44:31 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.27 2015/01/20 18:31:25 christos Exp $");
+__RCSID("$NetBSD: atexit.c,v 1.28 2015/04/18 21:44:31 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include "reentrant.h"
@@ -135,6 +135,10 @@
*
* http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor
*/
+#if defined(__ARM_EABI__) && !defined(lint)
+__strong_alias(__aeabi_atexit,__cxa_atexit);
+#endif
+
int
__cxa_atexit(void (*func)(void *), void *arg, void *dso)
{
Home |
Main Index |
Thread Index |
Old Index