mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
Restore GL(dl_initial_dtv)
This commit is contained in:
parent
b80af2f406
commit
04570aaa8a
@ -1,3 +1,9 @@
|
|||||||
|
2012-09-06 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elf/dl-tls.c (DL_INITIAL_DTV): Removed.
|
||||||
|
(_dl_initial_dtv): New. Defined if SHARED isn't defined.
|
||||||
|
(_dl_deallocate_tls): Restore GL(dl_initial_dtv).
|
||||||
|
|
||||||
2012-09-06 H.J. Lu <hongjiu.lu@intel.com>
|
2012-09-06 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* csu/libc-tls.c (static_dtv): Renamed to ...
|
* csu/libc-tls.c (static_dtv): Renamed to ...
|
||||||
|
@ -466,9 +466,7 @@ rtld_hidden_def (_dl_allocate_tls)
|
|||||||
|
|
||||||
#ifndef SHARED
|
#ifndef SHARED
|
||||||
extern dtv_t _dl_static_dtv[];
|
extern dtv_t _dl_static_dtv[];
|
||||||
# define DL_INITIAL_DTV (&_dl_static_dtv[1])
|
# define _dl_initial_dtv (&_dl_static_dtv[1])
|
||||||
#else
|
|
||||||
# define DL_INITIAL_DTV GL(dl_initial_dtv)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -484,7 +482,7 @@ _dl_deallocate_tls (void *tcb, bool dealloc_tcb)
|
|||||||
free (dtv[1 + cnt].pointer.val);
|
free (dtv[1 + cnt].pointer.val);
|
||||||
|
|
||||||
/* The array starts with dtv[-1]. */
|
/* The array starts with dtv[-1]. */
|
||||||
if (dtv != DL_INITIAL_DTV)
|
if (dtv != GL(dl_initial_dtv))
|
||||||
free (dtv - 1);
|
free (dtv - 1);
|
||||||
|
|
||||||
if (dealloc_tcb)
|
if (dealloc_tcb)
|
||||||
|
Loading…
Reference in New Issue
Block a user