[cfe-dev] -fsanitize=undefined and shared libraries

zapadinsky zapadinsky at gmail.com
Fri Jan 11 09:40:27 PST 2013


I have had a similar problem with integer checks. compiler-rt was not linked
to .so files and there were unknown references to
__ubsan_handle_add_overflow and so on.

I managed this issue adding "-Wl,--whole-archive
-L/usr/local/lib/clang/3.3/lib/linux/ -lclang_rt.ubsan-i386
-Wl,--no-whole-archive" to command line... and its not a beautiful solution.

When this issue will be fixed in trunk?



--
View this message in context: http://clang-developers.42468.n3.nabble.com/fsanitize-undefined-and-shared-libraries-tp4029561p4029653.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list