Skip to content
  1. Sep 12, 2012
  2. Sep 11, 2012
  3. Sep 06, 2012
  4. Sep 05, 2012
  5. Aug 30, 2012
  6. Aug 29, 2012
    • Chandler Carruth's avatar
      Relocate the external headers provided by ASan and the common sanitizer · 1aa4fef6
      Chandler Carruth authored
      library.
      
      These headers are intended to be available to user code when built with
      AddressSanitizer (or one of the other sanitizer's in the future) to
      interface with the runtime library. As such, they form stable external
      C interfaces, and the headers shouldn't be located within the
      implementation.
      
      I've pulled them out into what seem like fairly obvious locations and
      names, but I'm wide open to further bikeshedding of these names and
      locations.
      
      I've updated the code and the build system to cope with the new
      locations, both CMake and Makefile. Please let me know if this breaks
      anyone's build.
      
      The eventual goal is to install these headers along side the Clang
      builtin headers when we build the ASan runtime and install it. My
      current thinking is to locate them at:
      
        <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h
        <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h
        <prefix>/lib/clang/X.Y/include/sanitizer/...
      
      But maybe others have different suggestions?
      
      Fixing the style of the #include between these headers at least unblocks
      experimentation with installing them as they now should work when
      installed in these locations.
      
      llvm-svn: 162822
      1aa4fef6
    • Chandler Carruth's avatar
      Some flag cleanup for the sanitizer runtimes. · c1c9d581
      Chandler Carruth authored
      This hoists most of the CFLAGS into a common variable. It also adds
      detection for -Wno-c99-extensions and uses it to silence a pile of
      warnings.
      
      Finally, it switches to the proper flag -rdynamic.
      
      With this, the cmake build is warning free on my bootstrap Linux build.
      
      llvm-svn: 162809
      c1c9d581
  7. Aug 28, 2012
  8. Aug 14, 2012
  9. Aug 13, 2012
  10. Aug 10, 2012
  11. Aug 07, 2012
  12. Aug 02, 2012
  13. Jul 25, 2012
  14. Jul 24, 2012
  15. Jul 23, 2012
  16. Jun 29, 2012
  17. Jun 28, 2012
  18. Jun 27, 2012
    • Chandler Carruth's avatar
      Add support for building the ASan instrumentation unit tests with the · 9aaf156f
      Chandler Carruth authored
      just-built Clang binary, and linking them against the just-built ASan
      runtime.
      
      This is *very* brittle. I expect it will require tweaking, and I've
      pro-actively disabled it on non-Unix builds and on cross-builds.
      
      It is also currently missing dependency edges on GoogleTest header files
      and a few other corner cases, but those can be fixed. This is the major
      milestone of a mini-bootstrap-like build of the unittest.
      
      llvm-svn: 159255
      9aaf156f
  19. Jun 25, 2012
    • Kostya Serebryany's avatar
      [asan] update the cmake file for asan · c639b394
      Kostya Serebryany authored
      llvm-svn: 159143
      c639b394
    • Kostya Serebryany's avatar
      [asan] move tests from asan_interface_test.cc to asan_noinst_test.cc. Now all... · 9ed4f506
      Kostya Serebryany authored
      [asan] move tests from asan_interface_test.cc to asan_noinst_test.cc. Now all these tests do not require instrumentation and work directly with asan rt
      
      llvm-svn: 159135
      9ed4f506
    • Chandler Carruth's avatar
      Cleanup the handling of CFLAGS even more in the cmake build for ASan. · 9359efa9
      Chandler Carruth authored
      Add the initial support for building ASan tests.
      
      The first change here is to try to get the CFLAGS to more closely match
      those used by the old Makefile. There are probably still goofs here,
      ASan folks, your review would be appreciated.
      
      The second big change is to add support for building both
      instrumentation based an non-instrumentation based unittests for ASan.
      They are built a bit differently from how the old makefiles managed
      things. Specifically, there are two binaries, one for the
      non-instrumented case, and one for the instrumented case.
      
      Also, the instrumented unit tests rely on the host compiler supporting
      AddressSanitizer's intrumentation pass. This is kind-of gross, but
      I don't know of a better way yet. I've mailed llvmdev to discuss this
      issue.
      
      One big caveat is that the detection logic currently doesn't work. I've
      commented it out temporarily as I'd like to get feedback from the ASan
      developers, etc.
      
      llvm-svn: 159134
      9359efa9
  20. Jun 21, 2012
  21. Jun 20, 2012
  22. Jun 08, 2012
Loading