Weak link token section (#1080)

* fix

* a
This commit is contained in:
Dongjia "toka" Zhang 2023-02-17 18:38:46 +09:00 committed by GitHub
parent bdac876dd4
commit 20958a979f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -661,7 +661,7 @@ bool AutoTokensPass::runOnModule(Module &M) {
ArrayType *arrayTy = ArrayType::get(IntegerType::get(Ctx, 8), offset); ArrayType *arrayTy = ArrayType::get(IntegerType::get(Ctx, 8), offset);
// The actual dict // The actual dict
GlobalVariable *dict = new GlobalVariable( GlobalVariable *dict = new GlobalVariable(
M, arrayTy, true, GlobalVariable::ExternalLinkage, M, arrayTy, true, GlobalVariable::WeakAnyLinkage,
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());