[llvm-dev] Compiling program with dfsan at IR
Peter Collingbourne via llvm-dev
llvm-dev at lists.llvm.org
Fri Jun 2 12:25:37 PDT 2017
Programs compiled with dfsan require a runtime library in order to work
correctly. You will need to link your program with "clang
-fsanitize=dataflow".
Peter
On Fri, Jun 2, 2017 at 12:46 AM, Archa . via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> 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
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
--
--
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170602/ff8467fc/attachment.html>
More information about the llvm-dev
mailing list