From owner-svn-src-all@FreeBSD.ORG Thu Jan 8 22:40:59 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE761A9D; Thu, 8 Jan 2015 22:40:59 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AF7363A4; Thu, 8 Jan 2015 22:40:59 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t08MexM0046901; Thu, 8 Jan 2015 22:40:59 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t08MevTv046892; Thu, 8 Jan 2015 22:40:57 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201501082240.t08MevTv046892@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Thu, 8 Jan 2015 22:40:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276857 - in head/lib/libclang_rt: . asan asan_cxx profile san ubsan ubsan_cxx X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2015 22:40:59 -0000 Author: dim Date: Thu Jan 8 22:40:56 2015 New Revision: 276857 URL: https://svnweb.freebsd.org/changeset/base/276857 Log: Now compiler-rt has been updated in r276851, bring in the various sanitizer libraries that already work on FreeBSD: * asan: Address Sanitizer * ubsan: Undefined Behavior Sanitizer * profile: Profile Guided Optimization support Please note that these libraries are *experimental* at this stage, so the main Makefile is not yet connected to the build. Since I didn't want to needlessly edit BSD.usr.dist, you will also have to create the install directory /usr/lib/clang/3.5.0/lib/freebsd manually for now. Added: head/lib/libclang_rt/ head/lib/libclang_rt/Makefile (contents, props changed) head/lib/libclang_rt/Makefile.inc (contents, props changed) head/lib/libclang_rt/asan/ head/lib/libclang_rt/asan/Makefile (contents, props changed) head/lib/libclang_rt/asan_cxx/ head/lib/libclang_rt/asan_cxx/Makefile (contents, props changed) head/lib/libclang_rt/profile/ head/lib/libclang_rt/profile/Makefile (contents, props changed) head/lib/libclang_rt/san/ head/lib/libclang_rt/san/Makefile (contents, props changed) head/lib/libclang_rt/ubsan/ head/lib/libclang_rt/ubsan/Makefile (contents, props changed) head/lib/libclang_rt/ubsan_cxx/ head/lib/libclang_rt/ubsan_cxx/Makefile (contents, props changed) Added: head/lib/libclang_rt/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libclang_rt/Makefile Thu Jan 8 22:40:56 2015 (r276857) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +SUBDIR= asan\ + asan_cxx\ + profile\ + san\ + ubsan\ + ubsan_cxx + +.include Added: head/lib/libclang_rt/Makefile.inc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libclang_rt/Makefile.inc Thu Jan 8 22:40:56 2015 (r276857) @@ -0,0 +1,25 @@ +# $FreeBSD$ + +.include + +CRTARCH=${MACHINE_CPUARCH:C/amd64/x86_64/} +CRTSRC=${.CURDIR}/../../../contrib/compiler-rt + +LIBDIR=/usr/lib/clang/3.5.0/lib/freebsd + +NO_PIC= +MK_PROFILE=no + +WARNS?=0 + +SSP_CFLAGS= +CFLAGS+=-DNDEBUG +CFLAGS+=${PICFLAG} +CFLAGS+=-fno-builtin +CFLAGS+=-fno-exceptions +CFLAGS+=-fno-rtti +CFLAGS+=-fno-stack-protector +CFLAGS+=-funwind-tables +CFLAGS+=-fvisibility-inlines-hidden +CFLAGS+=-fvisibility=hidden +CFLAGS+=-I${CRTSRC}/lib Added: head/lib/libclang_rt/asan/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libclang_rt/asan/Makefile Thu Jan 8 22:40:56 2015 (r276857) @@ -0,0 +1,78 @@ +# $FreeBSD$ + +.include + +LIB= clang_rt.asan-${CRTARCH} + +.PATH: ${CRTSRC}/lib/asan\ + ${CRTSRC}/lib/interception\ + ${CRTSRC}/lib/sanitizer_common\ + ${CRTSRC}/lib/lsan + +SRCS= asan_preinit.cc\ + asan_allocator2.cc\ + asan_activation.cc\ + asan_debugging.cc\ + asan_fake_stack.cc\ + asan_globals.cc\ + asan_interceptors.cc\ + asan_linux.cc\ + asan_mac.cc\ + asan_malloc_linux.cc\ + asan_malloc_mac.cc\ + asan_malloc_win.cc\ + asan_poisoning.cc\ + asan_posix.cc\ + asan_report.cc\ + asan_rtl.cc\ + asan_stack.cc\ + asan_stats.cc\ + asan_suppressions.cc\ + asan_thread.cc\ + asan_win.cc\ + interception_linux.cc\ + interception_mac.cc\ + interception_win.cc\ + interception_type_test.cc\ + sanitizer_allocator.cc\ + sanitizer_common.cc\ + sanitizer_deadlock_detector1.cc\ + sanitizer_deadlock_detector2.cc\ + sanitizer_flags.cc\ + sanitizer_libc.cc\ + sanitizer_libignore.cc\ + sanitizer_linux.cc\ + sanitizer_mac.cc\ + sanitizer_persistent_allocator.cc\ + sanitizer_platform_limits_linux.cc\ + sanitizer_platform_limits_posix.cc\ + sanitizer_posix.cc\ + sanitizer_printf.cc\ + sanitizer_procmaps_common.cc\ + sanitizer_procmaps_freebsd.cc\ + sanitizer_procmaps_linux.cc\ + sanitizer_procmaps_mac.cc\ + sanitizer_stackdepot.cc\ + sanitizer_stacktrace.cc\ + sanitizer_stacktrace_printer.cc\ + sanitizer_suppressions.cc\ + sanitizer_symbolizer.cc\ + sanitizer_symbolizer_libbacktrace.cc\ + sanitizer_symbolizer_win.cc\ + sanitizer_tls_get_addr.cc\ + sanitizer_thread_registry.cc\ + sanitizer_win.cc\ + sanitizer_common_libcdep.cc\ + sanitizer_coverage_libcdep.cc\ + sanitizer_coverage_mapping_libcdep.cc\ + sanitizer_linux_libcdep.cc\ + sanitizer_posix_libcdep.cc\ + sanitizer_stacktrace_libcdep.cc\ + sanitizer_stoptheworld_linux_libcdep.cc\ + sanitizer_symbolizer_libcdep.cc\ + sanitizer_symbolizer_posix_libcdep.cc\ + sanitizer_unwind_posix_libcdep.cc\ + lsan_common.cc\ + lsan_common_linux.cc + +.include Added: head/lib/libclang_rt/asan_cxx/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libclang_rt/asan_cxx/Makefile Thu Jan 8 22:40:56 2015 (r276857) @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.include + +LIB= clang_rt.asan_cxx-${CRTARCH} + +.PATH: ${CRTSRC}/lib/asan + +SRCS= asan_new_delete.cc + +.include Added: head/lib/libclang_rt/profile/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libclang_rt/profile/Makefile Thu Jan 8 22:40:56 2015 (r276857) @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.include + +LIB= clang_rt.profile-${CRTARCH} + +.PATH: ${CRTSRC}/lib/profile + +SRCS= GCDAProfiling.c\ + InstrProfiling.c\ + InstrProfilingBuffer.c\ + InstrProfilingFile.c\ + InstrProfilingPlatformDarwin.c\ + InstrProfilingPlatformOther.c\ + InstrProfilingRuntime.cc\ + +.include Added: head/lib/libclang_rt/san/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libclang_rt/san/Makefile Thu Jan 8 22:40:56 2015 (r276857) @@ -0,0 +1,48 @@ +# $FreeBSD$ + +.include + +LIB= clang_rt.san-${CRTARCH} + +.PATH: ${CRTSRC}/lib/sanitizer_common\ + +SRCS= sanitizer_allocator.cc\ + sanitizer_common.cc\ + sanitizer_deadlock_detector1.cc\ + sanitizer_deadlock_detector2.cc\ + sanitizer_flags.cc\ + sanitizer_libc.cc\ + sanitizer_libignore.cc\ + sanitizer_linux.cc\ + sanitizer_mac.cc\ + sanitizer_persistent_allocator.cc\ + sanitizer_platform_limits_linux.cc\ + sanitizer_platform_limits_posix.cc\ + sanitizer_posix.cc\ + sanitizer_printf.cc\ + sanitizer_procmaps_common.cc\ + sanitizer_procmaps_freebsd.cc\ + sanitizer_procmaps_linux.cc\ + sanitizer_procmaps_mac.cc\ + sanitizer_stackdepot.cc\ + sanitizer_stacktrace.cc\ + sanitizer_stacktrace_printer.cc\ + sanitizer_suppressions.cc\ + sanitizer_symbolizer.cc\ + sanitizer_symbolizer_libbacktrace.cc\ + sanitizer_symbolizer_win.cc\ + sanitizer_tls_get_addr.cc\ + sanitizer_thread_registry.cc\ + sanitizer_win.cc\ + sanitizer_common_libcdep.cc\ + sanitizer_coverage_libcdep.cc\ + sanitizer_coverage_mapping_libcdep.cc\ + sanitizer_linux_libcdep.cc\ + sanitizer_posix_libcdep.cc\ + sanitizer_stacktrace_libcdep.cc\ + sanitizer_stoptheworld_linux_libcdep.cc\ + sanitizer_symbolizer_libcdep.cc\ + sanitizer_symbolizer_posix_libcdep.cc\ + sanitizer_unwind_posix_libcdep.cc + +.include Added: head/lib/libclang_rt/ubsan/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libclang_rt/ubsan/Makefile Thu Jan 8 22:40:56 2015 (r276857) @@ -0,0 +1,17 @@ +# $FreeBSD$ + +.include + +LIB= clang_rt.ubsan-${CRTARCH} + +.PATH: ${CRTSRC}/lib/ubsan + +SRCS= ubsan_diag.cc\ + ubsan_init.cc\ + ubsan_flags.cc\ + ubsan_handlers.cc\ + ubsan_value.cc + +.include + + Added: head/lib/libclang_rt/ubsan_cxx/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libclang_rt/ubsan_cxx/Makefile Thu Jan 8 22:40:56 2015 (r276857) @@ -0,0 +1,14 @@ +# $FreeBSD$ + +.include + +LIB= clang_rt.ubsan_cxx-${CRTARCH} + +CXXFLAGS+=-frtti + +.PATH: ${CRTSRC}/lib/ubsan + +SRCS= ubsan_handlers_cxx.cc\ + ubsan_type_hash.cc + +.include