Patch 2/4 of the effort to make TLS access async-signal-safe.
commit1f33d36a8a9e78c81bed59b47f260723f56bb7e6
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Thu, 19 Dec 2013 00:46:18 +0000 (18 16:46 -0800)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Thu, 19 Dec 2013 00:46:18 +0000 (18 16:46 -0800)
treeff72018a2e0021f7a1110289681ed8ab4516df37
parent35e8f7ab94c910659de9d507aa0f3e1f8973d914
Patch 2/4 of the effort to make TLS access async-signal-safe.
Add a signal-safe malloc replacement.

2013-12-18  Andrew Hunter  <ahh@google.com>

* sysdeps/generic/ldsodefs.h (__signal_safe_memalign): New prototype.
(__signal_safe_malloc, __signal_safe_free): Likewise.
(__signal_safe_realloc, __signal_safe_calloc): Likewise.
* elf/dl-misc.c (__signal_safe_allocator_header): New struct.
(__signal_safe_memalign, __signal_safe_malloc): New function.
(__signal_safe_free, __signal_safe_realloc): Likewise.
(__signal_safe_calloc): Likewise.
* elf/dl-tls.c (allocate_dtv, _dl_clear_dtv): Call signal-safe
functions.
(_dl_deallocate_tls, _dl_update_slotinfo): Likewise.
ChangeLog
elf/dl-misc.c
elf/dl-tls.c
sysdeps/generic/ldsodefs.h