summaryrefslogtreecommitdiff
path: root/linker/linker_tls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linker/linker_tls.cpp')
-rw-r--r--linker/linker_tls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linker/linker_tls.cpp b/linker/linker_tls.cpp
index 33274535c..c0ebf252c 100644
--- a/linker/linker_tls.cpp
+++ b/linker/linker_tls.cpp
@@ -41,7 +41,7 @@ extern "C" void __linker_reserve_bionic_tls_in_static_tls() {
// Stub for linker static TLS layout.
void layout_linker_static_tls() {
StaticTlsLayout& layout = __libc_shared_globals()->static_tls_layout;
- layout.reserve_tcb();
+ layout.reserve_exe_segment_and_tcb(nullptr);
// The pthread key data is located at the very front of bionic_tls. As a
// temporary workaround, allocate bionic_tls just after the thread pointer so