Module Name: src
Committed By: joerg
Date: Sat Apr 18 21:44:31 UTC 2015
Modified Files:
src/lib/libc/stdlib: atexit.c
Log Message:
Add __aeabi_atexit alias for another case of NIH on ARM.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/lib/libc/stdlib/atexit.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/stdlib/atexit.c
diff -u src/lib/libc/stdlib/atexit.c:1.27 src/lib/libc/stdlib/atexit.c:1.28
--- src/lib/libc/stdlib/atexit.c:1.27 Tue Jan 20 18:31:25 2015
+++ src/lib/libc/stdlib/atexit.c Sat Apr 18 21:44:31 2015
@@ -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 @@ __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);
+#endif
+
int
__cxa_atexit(void (*func)(void *), void *arg, void *dso)
{