[LLVMbugs] [Bug 15823] Address sanitizer interacts badly with -Wl, --as-needed on linux

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 18 15:13:29 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=15823

Alexey Samsonov <vonosmas at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Alexey Samsonov <vonosmas at gmail.com> ---
I've implemented Alexander's suggestion in r215940.
$ cat clock_gettime.c 
#include <stdio.h>
#include <time.h>

int main() {
  struct timespec ts;
  clock_gettime(CLOCK_REALTIME, &ts);
  return 0;
}
$ ./bin/clang -fsanitize=address -Wl,-as-needed clock_gettime.c && ./a.out

Please reopen this bug if you still see errors.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140818/a283a567/attachment.html>


More information about the llvm-bugs mailing list