From 20958a979f6ef43adad02d696a91a895dcea7623 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Fri, 17 Feb 2023 18:38:46 +0900 Subject: [PATCH] Weak link token section (#1080) * fix * a --- libafl_cc/src/autotokens-pass.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libafl_cc/src/autotokens-pass.cc b/libafl_cc/src/autotokens-pass.cc index af529f587b..05e1f28bd5 100644 --- a/libafl_cc/src/autotokens-pass.cc +++ b/libafl_cc/src/autotokens-pass.cc @@ -661,7 +661,7 @@ bool AutoTokensPass::runOnModule(Module &M) { ArrayType *arrayTy = ArrayType::get(IntegerType::get(Ctx, 8), offset); // The actual dict GlobalVariable *dict = new GlobalVariable( - M, arrayTy, true, GlobalVariable::ExternalLinkage, + M, arrayTy, true, GlobalVariable::WeakAnyLinkage, ConstantDataArray::get(Ctx, *(new ArrayRef(ptrhld.get(), offset))), "libafl_dictionary_" + M.getName());