commit | d500751443dbd841445f019428099aae42bac007 | [log] [tgz] |
---|---|---|
author | Vy Nguyen <vyng@google.com> | Tue Jul 14 17:37:04 2020 -0400 |
committer | Vy Nguyen <vyng@google.com> | Tue Aug 11 16:51:43 2020 +0000 |
tree | 2c55d14b68aad215315d927885a12c427c58b451 | |
parent | f08e70a0d9a02cbec89be682d665c2c2896c968f [diff] [blame] |
Add a thread-properties API (Based on proposal at https://sourceware.org/glibc/wiki/ThreadPropertiesAPI) This includes API to: - locate static and dynamic TLS - register thread-exit and dynamic TLS creation/destruction callbacks Change-Id: Icd9d29a5b2f47495395645e19d3b2c96826f19c8
diff --git a/libc/bionic/libc_init_static.cpp b/libc/bionic/libc_init_static.cpp index cf5423e..e3a447d 100644 --- a/libc/bionic/libc_init_static.cpp +++ b/libc/bionic/libc_init_static.cpp
@@ -147,6 +147,7 @@ mod.first_generation = kTlsGenerationFirst; modules.module_count = 1; + modules.static_module_count = 1; modules.module_table = &mod; } else { layout.reserve_exe_segment_and_tcb(nullptr, progname);