search for: __dfsan_arg_tls

Displaying 5 results from an estimated 5 matches for "__dfsan_arg_tls".

2017 Jun 03
2
Compiling program with dfsan at IR
...s. >> >> Steps taken: >> 1.Convert toy program to .bc >> 2. IR pass to insert dfsan calls >> 3.opt -dfsan on resultant bitcode from step 2 >> 4. llc step3.bc -o step4.s >> 5. gcc step.s -o step5.o >> >> I get error "undefined reference to `__dfsan_arg_tls' " and so forth for >> all functions defined. >> Is there something I am missing or doing wrong in my steps. >> >> Thanks >> >> >> >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm...
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
...@@ -573,6 +575,8 @@ bool DataFlowSanitizer::runOnModule(Module &M) { if (ABIList.isIn(M, "skip")) return false; + FunctionDIs = makeSubprogramMap(M); + if (!GetArgTLSPtr) { Type *ArgTLSTy = ArrayType::get(ShadowTy, 64); ArgTLS = Mod->getOrInsertGlobal("__dfsan_arg_tls", ArgTLSTy); @@ -725,6 +729,12 @@ bool DataFlowSanitizer::runOnModule(Module &M) { Value *WrappedFnCst = ConstantExpr::getBitCast(NewF, PointerType::getUnqual(FT)); F.replaceAllUsesWith(WrappedFnCst); + + // Patch the pointer to LLVM function in debug info des...
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
...> if (ABIList.isIn(M, "skip")) > > return false; > > > > + FunctionDIs = makeSubprogramMap(M); > > + > > if (!GetArgTLSPtr) { > > Type *ArgTLSTy = ArrayType::get(ShadowTy, 64); > > ArgTLS = Mod->getOrInsertGlobal("__dfsan_arg_tls", ArgTLSTy); > > @@ -725,6 +729,12 @@ bool DataFlowSanitizer::runOnModule(Module &M) { > > Value *WrappedFnCst = > > ConstantExpr::getBitCast(NewF, PointerType::getUnqual(FT)); > > F.replaceAllUsesWith(WrappedFnCst); > > + > > +...
2018 Jan 16
0
Running Scalar Evolution on Modules on an ad-hoc basis
...------ (gdb) r Starting program: /home/ebdavis/Documents/llvm-build/bin/dfsan-scev-parse if.bc [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". I: %0 = load i32, i32* getelementptr inbounds ([64 x i32], [64 x i32]* @__dfsan_arg_tls, i64 0, i64 2), !dbg !18 SCEV: Program received signal SIGSEGV, Segmentation fault. llvm::DenseMap<llvm::ScalarEvolution::SCEVCallbackVH, llvm::SCEV const*, llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::ScalarEvolution::SCEVCallbackVH, llvm::SCEV const*> >::ge...
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
On Tue, Oct 7, 2014 at 12:18 PM, David Blaikie <dblaikie at gmail.com> wrote: > > > On Tue, Oct 7, 2014 at 12:10 PM, David Blaikie <dblaikie at gmail.com> wrote: > >> >> >> On Tue, Oct 7, 2014 at 11:48 AM, Peter Collingbourne <peter at pcc.me.uk> >> wrote: >> >>> On Tue, Oct 07, 2014 at 10:04:30AM -0700, David Blaikie wrote: