On 11/26/13 23:36, Yury Gribov wrote:
> This patch is supposed to fix PR59063
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063).
>
> The original bug results from libasan providing clock_gettime wrapper
and then trying to call the "real" clock_gettime.
> The "real" symbol is supposed to come from librt.so which was not
necessarily linked to executable. The net result is a NULL call.
>
> Patch is based on Evgeniy Stepanov's and Jakub's suggestions in
bugzilla discussion. It instructs frontend to add -lrt on static Asan
compilation and also links dynamic libasan.so against librt.so.
>
> This was tested against gcc asan testsuite on x86_64.
Original post: http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01389.html
This is fine. I'm assuming that the minor changes to the sanitizer
libraries are in bits that are maintained within GCC rather than
upstream in LLVM. Right?
jeff