android_bionic/libc
Josh Gao 5e2285d3cc Allocate thread local buffers in __init_tls.
Thread local buffers were using pthread_setspecific for storage with
lazy initialization. pthread_setspecific shares TLS slots between the
linker and libc.so, so thread local buffers being initialized in a
different order between libc.so and the linker meant that bad things
would happen (manifesting as snprintf not working because the
locale was mangled)

Bug: http://b/20464031
Test: /data/nativetest64/bionic-unit-tests/bionic-unit-tests
      everything passes
Test: /data/nativetest/bionic-unit-tests/bionic-unit-tests
      thread_local tests are failing both before and after (KUSER_HELPERS?)
Test: /data/nativetest64/bionic-unit-tests-static/bionic-unit-tests-static
      no additional failures
Change-Id: I9f445a77c6e86979f3fa49c4a5feecf6ec2b0c3f
2017-02-22 16:05:03 -08:00
..
arch-arm Merge "Removing the kuser_helper elf note from building" 2017-02-10 06:24:32 +00:00
arch-arm64
arch-common/bionic
arch-mips libc: add clang FORTIFY support 2017-02-09 15:49:32 -08:00
arch-mips64
arch-x86
arch-x86_64
bionic Allocate thread local buffers in __init_tls. 2017-02-22 16:05:03 -08:00
dns
include Add timeout support to __system_property_wait. 2017-02-21 14:36:24 -08:00
kernel Merge "bionic: move ADF uapi header out of bionic" 2017-02-01 04:38:15 +00:00
malloc_debug
private Allocate thread local buffers in __init_tls. 2017-02-22 16:05:03 -08:00
seccomp Create seccomp policy without TRAP for further processing 2017-02-03 09:36:45 -08:00
stdio libc: add clang FORTIFY support 2017-02-09 15:49:32 -08:00
stdlib
tools Create seccomp policy without TRAP for further processing 2017-02-03 09:36:45 -08:00
tzcode
upstream-freebsd libc: add clang FORTIFY support 2017-02-09 15:49:32 -08:00
upstream-netbsd
upstream-openbsd libc: add clang FORTIFY support 2017-02-09 15:49:32 -08:00
zoneinfo
Android.bp Revert "Revert "Make libc.so global"" 2017-02-17 22:38:22 +00:00
Android.mk
MODULE_LICENSE_BSD
NOTICE Unify linker files under one license (BSD) 2017-02-15 15:35:33 -08:00
SYSCALLS.TXT
fs_config_generator.py
libc.arm.map Merge "add fortified implementations of send/sendto" 2017-02-15 18:26:50 +00:00
libc.arm64.map Merge "add fortified implementations of send/sendto" 2017-02-15 18:26:50 +00:00
libc.map.txt Merge "add fortified implementations of send/sendto" 2017-02-15 18:26:50 +00:00
libc.mips.map Merge "add fortified implementations of send/sendto" 2017-02-15 18:26:50 +00:00
libc.mips64.map Merge "add fortified implementations of send/sendto" 2017-02-15 18:26:50 +00:00
libc.x86.map Merge "add fortified implementations of send/sendto" 2017-02-15 18:26:50 +00:00
libc.x86_64.map Merge "add fortified implementations of send/sendto" 2017-02-15 18:26:50 +00:00
libstdc++.arm.map
libstdc++.arm64.map
libstdc++.map.txt
libstdc++.mips.map
libstdc++.mips64.map
libstdc++.x86.map
libstdc++.x86_64.map
version_script.txt