Extend autotokens pass support to other unixes (#900)
This commit is contained in:
parent
ff2971068f
commit
32dc796234
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user