Import the asan runtime library into GCC treeheads/dodji/asan-merge-assemble
commit79518ddbb896f5c9db2e9d1dafb190a3c493d326
authorWei Mi <wmi@google.com>
Tue, 30 Oct 2012 06:45:44 +0000 (30 06:45 +0000)
committerDodji Seketeli <dodji@seketeli.org>
Fri, 9 Nov 2012 17:03:56 +0000 (9 18:03 +0100)
tree069f5c873e43a9ff049b6ded8dca25f2a5956334
parent905d350be68641678a5f73b3742b2d0cba8afa7f
Import the asan runtime library into GCC tree

This patch imports the runtime library in the GCC tree, ensures that
-lasan is passed to the linker when -faddress-sanitizer is used and
sets up the build system accordingly.

     * configure.ac: Add libsanitizer to target_libraries.
* Makefile.def: Ditto.
* configure: Regenerate.
* Makefile.in: Regenerate.
* libsanitizer: New directory for asan runtime.  Contains an empty
tsan directory.

gcc:
* gcc.c (LINK_COMMAND_SPEC): Add -lasan to link command
if -faddress-sanitizer is on.

libsanitizer:

Initial checkin: migrate asan runtime from llvm.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/asan@192977 138bc75d-0d04-0410-961f-82ee72b054a4
99 files changed:
ChangeLog.asan [new file with mode: 0644]
Makefile.def
Makefile.in
configure
configure.ac
gcc/ChangeLog.asan
gcc/gcc.c
libsanitizer/ChangeLog.asan [new file with mode: 0644]
libsanitizer/LICENSE.TXT [new file with mode: 0644]
libsanitizer/Makefile.am [new file with mode: 0644]
libsanitizer/Makefile.in [new file with mode: 0644]
libsanitizer/README.gcc [new file with mode: 0644]
libsanitizer/aclocal.m4 [new file with mode: 0644]
libsanitizer/asan/Makefile.am [new file with mode: 0644]
libsanitizer/asan/Makefile.in [new file with mode: 0644]
libsanitizer/asan/asan_allocator.cc [new file with mode: 0644]
libsanitizer/asan/asan_allocator.h [new file with mode: 0644]
libsanitizer/asan/asan_flags.h [new file with mode: 0644]
libsanitizer/asan/asan_globals.cc [new file with mode: 0644]
libsanitizer/asan/asan_intercepted_functions.h [new file with mode: 0644]
libsanitizer/asan/asan_interceptors.cc [new file with mode: 0644]
libsanitizer/asan/asan_interceptors.h [new file with mode: 0644]
libsanitizer/asan/asan_internal.h [new file with mode: 0644]
libsanitizer/asan/asan_linux.cc [new file with mode: 0644]
libsanitizer/asan/asan_lock.h [new file with mode: 0644]
libsanitizer/asan/asan_mac.cc [new file with mode: 0644]
libsanitizer/asan/asan_mac.h [new file with mode: 0644]
libsanitizer/asan/asan_malloc_linux.cc [new file with mode: 0644]
libsanitizer/asan/asan_malloc_mac.cc [new file with mode: 0644]
libsanitizer/asan/asan_malloc_win.cc [new file with mode: 0644]
libsanitizer/asan/asan_mapping.h [new file with mode: 0644]
libsanitizer/asan/asan_new_delete.cc [new file with mode: 0644]
libsanitizer/asan/asan_poisoning.cc [new file with mode: 0644]
libsanitizer/asan/asan_posix.cc [new file with mode: 0644]
libsanitizer/asan/asan_report.cc [new file with mode: 0644]
libsanitizer/asan/asan_report.h [new file with mode: 0644]
libsanitizer/asan/asan_rtl.cc [new file with mode: 0644]
libsanitizer/asan/asan_stack.cc [new file with mode: 0644]
libsanitizer/asan/asan_stack.h [new file with mode: 0644]
libsanitizer/asan/asan_stats.cc [new file with mode: 0644]
libsanitizer/asan/asan_stats.h [new file with mode: 0644]
libsanitizer/asan/asan_thread.cc [new file with mode: 0644]
libsanitizer/asan/asan_thread.h [new file with mode: 0644]
libsanitizer/asan/asan_thread_registry.cc [new file with mode: 0644]
libsanitizer/asan/asan_thread_registry.h [new file with mode: 0644]
libsanitizer/asan/asan_win.cc [new file with mode: 0644]
libsanitizer/asan/libtool-version [new file with mode: 0644]
libsanitizer/config.guess [new file with mode: 0644]
libsanitizer/config.sub [new file with mode: 0644]
libsanitizer/configure [new file with mode: 0755]
libsanitizer/configure.ac [new file with mode: 0644]
libsanitizer/depcomp [new file with mode: 0644]
libsanitizer/include/sanitizer/asan_interface.h [new file with mode: 0644]
libsanitizer/include/sanitizer/common_interface_defs.h [new file with mode: 0644]
libsanitizer/install-sh [new file with mode: 0644]
libsanitizer/interception/Makefile.am [new file with mode: 0644]
libsanitizer/interception/Makefile.in [new file with mode: 0644]
libsanitizer/interception/interception.h [new file with mode: 0644]
libsanitizer/interception/interception_linux.cc [new file with mode: 0644]
libsanitizer/interception/interception_linux.h [new file with mode: 0644]
libsanitizer/interception/interception_mac.cc [new file with mode: 0644]
libsanitizer/interception/interception_mac.h [new file with mode: 0644]
libsanitizer/interception/interception_win.cc [new file with mode: 0644]
libsanitizer/interception/interception_win.h [new file with mode: 0644]
libsanitizer/libtool-version [new file with mode: 0644]
libsanitizer/ltmain.sh [new file with mode: 0644]
libsanitizer/missing [new file with mode: 0644]
libsanitizer/sanitizer_common/Makefile.am [new file with mode: 0644]
libsanitizer/sanitizer_common/Makefile.in [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_allocator.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_allocator64.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_atomic.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_atomic_clang.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_atomic_msvc.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_common.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_common.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_flags.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_flags.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_internal_defs.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_libc.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_libc.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_linux.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_list.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_mac.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_mutex.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_placement_new.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_posix.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_printf.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_procmaps.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_stackdepot.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_stackdepot.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_stacktrace.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_stacktrace.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_symbolizer.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_symbolizer.h [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_symbolizer_linux.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_symbolizer_mac.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_symbolizer_win.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_win.cc [new file with mode: 0644]