aboutsummaryrefslogtreecommitdiff
path: root/instrumentation
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-01-05 19:20:10 +0100
committervan Hauser <vh@thc.org>2021-01-05 19:20:10 +0100
commit59b86b0db0c856bc659eb81a1bd3c414865ab1e4 (patch)
treeea00ca67d64e98dd5f6d84893391188621f92a6b /instrumentation
parent1a85fca49fdef542b21aefc2386a37359cd86def (diff)
downloadAFLplusplus-59b86b0db0c856bc659eb81a1bd3c414865ab1e4.tar.gz
haiku fix
Diffstat (limited to 'instrumentation')
-rw-r--r--instrumentation/afl-gcc-pass.so.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/instrumentation/afl-gcc-pass.so.cc b/instrumentation/afl-gcc-pass.so.cc
index 7d9ccdc9..47e1c1bf 100644
--- a/instrumentation/afl-gcc-pass.so.cc
+++ b/instrumentation/afl-gcc-pass.so.cc
@@ -444,8 +444,10 @@ struct afl_pass : gimple_opt_pass {
DECL_EXTERNAL(decl) = 1;
DECL_ARTIFICIAL(decl) = 1;
TREE_STATIC(decl) = 1;
+#if !defined(__ANDROID__) && !defined(__HAIKU__)
set_decl_tls_model(
decl, (flag_pic ? TLS_MODEL_INITIAL_EXEC : TLS_MODEL_LOCAL_EXEC));
+#endif
return decl;
}