am 4e8f791b: am c6ccdfaf: Merge "Hide emutls* symbols in libc.so"
* commit '4e8f791b43c0ec44ee884cf90b4241d947bd2b72': Hide emutls* symbols in libc.so
This commit is contained in:
commit
a2f29a1375
@ -1007,7 +1007,7 @@ include $(BUILD_STATIC_LIBRARY)
|
|||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_SRC_FILES := $(libc_thread_atexit_impl_src_files)
|
LOCAL_SRC_FILES := $(libc_thread_atexit_impl_src_files)
|
||||||
LOCAL_CFLAGS := $(libc_common_cflags) -fno-data-sections -Wframe-larger-than=2048
|
LOCAL_CFLAGS := $(libc_common_cflags) -Wframe-larger-than=2048
|
||||||
|
|
||||||
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
LOCAL_CONLYFLAGS := $(libc_common_conlyflags)
|
||||||
LOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
|
LOCAL_CPPFLAGS := $(libc_common_cppflags) -Wold-style-cast
|
||||||
|
@ -22,7 +22,7 @@ struct thread_local_dtor {
|
|||||||
thread_local_dtor* next;
|
thread_local_dtor* next;
|
||||||
};
|
};
|
||||||
|
|
||||||
__thread thread_local_dtor* thread_local_dtors = nullptr;
|
static __thread thread_local_dtor* thread_local_dtors = nullptr;
|
||||||
|
|
||||||
extern "C" int __cxa_thread_atexit_impl(void (*func) (void *), void *arg, void *dso_handle) {
|
extern "C" int __cxa_thread_atexit_impl(void (*func) (void *), void *arg, void *dso_handle) {
|
||||||
thread_local_dtor* dtor = new thread_local_dtor();
|
thread_local_dtor* dtor = new thread_local_dtor();
|
||||||
|
@ -35,7 +35,7 @@ class ClassWithDtor {
|
|||||||
std::string message;
|
std::string message;
|
||||||
};
|
};
|
||||||
|
|
||||||
thread_local ClassWithDtor class_with_dtor;
|
static thread_local ClassWithDtor class_with_dtor;
|
||||||
|
|
||||||
static void* thread_nop(void* arg) {
|
static void* thread_nop(void* arg) {
|
||||||
class_with_dtor.set_message(*static_cast<std::string*>(arg));
|
class_with_dtor.set_message(*static_cast<std::string*>(arg));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user