Fix __get_tls() in static C library to use kernel helpers.
This is needed to fix gdbserver's handling of threaded programs,
among other things.
Change-Id: I823387c602cef9891532da946a01db14be780ab0
diff --git a/libc/docs/CHANGES.TXT b/libc/docs/CHANGES.TXT
index d1d82de..4d094d0 100644
--- a/libc/docs/CHANGES.TXT
+++ b/libc/docs/CHANGES.TXT
@@ -73,6 +73,13 @@
- <dlfcn.h>: fixed dlopen() implementation to support dlopen(NULL, ...).
This allows one to look at the dynamic symbols exported by an executable.
+- <private/bionic_tls.h>: use kernel helper functions for static versions
+ of the C library. This is necessary because we don't know where the corresponding
+ machine code is going to run, and the optimization for __get_tls() might
+ not match the features of the target device where we run a static executable
+ linked to the C library. This fixes one of the bug that explains why gdbserver
+ didn't work well with threads.
+
-------------------------------------------------------------------------------
Differences between Android 2.2. and Android 2.1: