Extend autotokens pass support to other unixes (#900)

This commit is contained in:
David CARLIER 2022-11-20 08:24:30 +00:00 committed by GitHub
parent ff2971068f
commit 32dc796234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -665,7 +665,8 @@ bool AutoTokensPass::runOnModule(Module &M) {
ConstantDataArray::get(Ctx, ConstantDataArray::get(Ctx,
*(new ArrayRef<char>(ptrhld.get(), offset))), *(new ArrayRef<char>(ptrhld.get(), offset))),
"libafl_dictionary_" + M.getName()); "libafl_dictionary_" + M.getName());
#if defined(__linux__) #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
defined(__OpenBSD__) || defined(__DragonFly__)
dict->setSection("libafl_token"); dict->setSection("libafl_token");
#elif defined(__APPLE__) #elif defined(__APPLE__)
dict->setSection("__DATA,__libafl_token"); dict->setSection("__DATA,__libafl_token");