From 32dc7962340ae711b5a6e146a3e94cc1fdb39ef1 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sun, 20 Nov 2022 08:24:30 +0000 Subject: [PATCH] Extend autotokens pass support to other unixes (#900) --- libafl_cc/src/autotokens-pass.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libafl_cc/src/autotokens-pass.cc b/libafl_cc/src/autotokens-pass.cc index c4b6cdbc00..af529f587b 100644 --- a/libafl_cc/src/autotokens-pass.cc +++ b/libafl_cc/src/autotokens-pass.cc @@ -665,7 +665,8 @@ bool AutoTokensPass::runOnModule(Module &M) { ConstantDataArray::get(Ctx, *(new ArrayRef(ptrhld.get(), offset))), "libafl_dictionary_" + M.getName()); -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \ + defined(__OpenBSD__) || defined(__DragonFly__) dict->setSection("libafl_token"); #elif defined(__APPLE__) dict->setSection("__DATA,__libafl_token");