mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
* init.c (nptl_freeres): Compile only for SHARED.
This commit is contained in:
parent
bd82a24718
commit
30991b8bd9
@ -1,3 +1,7 @@
|
|||||||
|
2009-03-10 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* init.c (nptl_freeres): Compile only for SHARED.
|
||||||
|
|
||||||
2009-03-09 Jakub Jelinek <jakub@redhat.com>
|
2009-03-09 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define
|
* sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Define
|
||||||
|
@ -67,10 +67,10 @@ static const char nptl_version[] __attribute_used__ = VERSION;
|
|||||||
extern void __libc_setup_tls (size_t tcbsize, size_t tcbalign);
|
extern void __libc_setup_tls (size_t tcbsize, size_t tcbalign);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SHARED
|
||||||
static void nptl_freeres (void);
|
static void nptl_freeres (void);
|
||||||
|
|
||||||
|
|
||||||
#ifdef SHARED
|
|
||||||
static const struct pthread_functions pthread_functions =
|
static const struct pthread_functions pthread_functions =
|
||||||
{
|
{
|
||||||
.ptr_pthread_attr_destroy = __pthread_attr_destroy,
|
.ptr_pthread_attr_destroy = __pthread_attr_destroy,
|
||||||
@ -138,16 +138,16 @@ static const struct pthread_functions pthread_functions =
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef SHARED
|
||||||
/* This function is called indirectly from the freeres code in libc. */
|
/* This function is called indirectly from the freeres code in libc. */
|
||||||
static void
|
static void
|
||||||
__libc_freeres_fn_section
|
__libc_freeres_fn_section
|
||||||
nptl_freeres (void)
|
nptl_freeres (void)
|
||||||
{
|
{
|
||||||
#ifdef SHARED
|
|
||||||
__unwind_freeres ();
|
__unwind_freeres ();
|
||||||
#endif
|
|
||||||
__free_stacks (0);
|
__free_stacks (0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* For asynchronous cancellation we use a signal. This is the handler. */
|
/* For asynchronous cancellation we use a signal. This is the handler. */
|
||||||
|
Loading…
Reference in New Issue
Block a user