[llvm-dev] Compiling program with dfsan at IR

Archa . via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 2 00:46:48 PDT 2017


Hi,

I am trying to instrument a small program with dfsan at IR and then compile
it. But I end up with undefined reference errors.

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170602/c26c01ce/attachment-0001.html>


More information about the llvm-dev mailing list