2013-05-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/stdlib/__atexit.c (__atexit_lock): Declare. * libc/stdlib/__call_atexit.c (__atexit_lock): Define.
This commit is contained in:
parent
3483cbea76
commit
c0e447afd0
@ -1,3 +1,8 @@
|
||||
2013-05-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* libc/stdlib/__atexit.c (__atexit_lock): Declare.
|
||||
* libc/stdlib/__call_atexit.c (__atexit_lock): Define.
|
||||
|
||||
2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
|
||||
|
||||
* configure.host (machine_dir, sys_dir, syscall_dir, newlib_cflags):
|
||||
|
@ -10,7 +10,10 @@
|
||||
|
||||
/* Make this a weak reference to avoid pulling in malloc. */
|
||||
void * malloc(size_t) _ATTRIBUTE((__weak__));
|
||||
__LOCK_INIT_RECURSIVE(, __atexit_lock);
|
||||
|
||||
#ifndef __SINGLE_THREAD__
|
||||
extern _LOCK_RECURSIVE_T __atexit_lock;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Register a function to be performed at exit or on shared library unload.
|
||||
|
@ -11,9 +11,7 @@
|
||||
/* Make this a weak reference to avoid pulling in free. */
|
||||
void free(void *) _ATTRIBUTE((__weak__));
|
||||
|
||||
#ifndef __SINGLE_THREAD__
|
||||
extern _LOCK_RECURSIVE_T __atexit_lock;
|
||||
#endif
|
||||
__LOCK_INIT_RECURSIVE(, __atexit_lock);
|
||||
|
||||
#ifdef _WANT_REGISTER_FINI
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user