http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063
--- Comment #11 from Evgeniy Stepanov <eugeni.stepanov at gmail dot com> --- (In reply to Yury Gribov from comment #4) > (In reply to Andrew Pinski from comment #3) > > I think in newer versions of glibc, clock_gettime is in libc.so now too. > > I think Andrew is right - clock_gettime is in libc nowadays. Should we > wontfix this bug? A trivial WAR for users would be to add -lrt to cmdline. > > (In reply to Evgeniy Stepanov from comment #2) > > We should link with libasan with librt. In Clang, we add -lrt to the linker > > flags when we see -fsanitize=(address|thread|memory). > > Evgeniy, what about a warning in GetRealFunctionAddress if real symbol is > NULL? Warning sounds like a good idea.