From 90a0274743effbe7ecd42d5e4e08b01c22cc3b03 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Wed, 26 Jun 2019 16:41:49 +0100 Subject: [PATCH] Made TLS initial Exec. This massively improves the TLS access at the expense of not being dynamically loadable. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a5eb4b..79e9bd4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,7 @@ if(NOT DEFINED SNMALLOC_ONLY_HEADER_LIBRARY) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi") set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG") else() - add_compile_options(-march=native -fno-exceptions -fno-rtti -g) + add_compile_options(-march=native -fno-exceptions -fno-rtti -g -ftls-model=initial-exec) endif() macro(subdirlist result curdir)