I also see this question on llvm-dev -- let's discuss it there.

On Thu, Jul 20, 2017 at 5:42 AM, steven shi <[email protected]> wrote:

> Hello,
> I'm working on enabling the Ubsan in my firmware. I have two questions
> about Ubsan:
>
>    1. I see the Ubsan run-time lib functions are defined in
>    http://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/
>    ubsan/ubsan_interface.inc
>    
> <http://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_interface.inc>,
>    but I cannot find how the LLVM implement the Ubsan instrumentations. I see
>    the Asan's instrumentation lib is in http://llvm.org/svn/llvm-
>    project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
>    
> <http://llvm.org/svn/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp>,
>    but where is the Ubsan instrumentation lib?
>    2. My firmware usage scenario is quite sensitive to the code size.
>    Does the Ubsan have the build option to use callbacks instead of inline
>    checks (like Asan's -asan-instrumentation-with-call-threshold=0) ?
>
> Thanks
>
> Steven
>
> --
> You received this message because you are subscribed to the Google Groups
> "address-sanitizer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to