Update lib/libclang_rt for compiler-rt trunk r338150.

This commit is contained in:
Dimitry Andric 2018-08-03 15:30:32 +00:00
parent b6c38ab8f8
commit a757dfacfa
12 changed files with 102 additions and 6 deletions

View File

@ -6,6 +6,8 @@ SUBDIR+= asan
SUBDIR+= asan-preinit
SUBDIR+= asan_cxx
SUBDIR+= asan_dynamic
SUBDIR+= msan
SUBDIR+= msan_cxx
SUBDIR+= safestack
SUBDIR+= stats
SUBDIR+= stats_client

View File

@ -33,6 +33,7 @@ SRCS+= interception/interception_type_test.cc
SRCS+= sanitizer_common/sancov_flags.cc
SRCS+= sanitizer_common/sanitizer_allocator.cc
SRCS+= sanitizer_common/sanitizer_allocator_checks.cc
SRCS+= sanitizer_common/sanitizer_allocator_report.cc
SRCS+= sanitizer_common/sanitizer_common.cc
SRCS+= sanitizer_common/sanitizer_common_libcdep.cc
SRCS+= sanitizer_common/sanitizer_coverage_libcdep_new.cc
@ -63,6 +64,7 @@ SRCS+= sanitizer_common/sanitizer_symbolizer.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_report.cc
SRCS+= sanitizer_common/sanitizer_termination.cc
SRCS+= sanitizer_common/sanitizer_thread_registry.cc
SRCS+= sanitizer_common/sanitizer_tls_get_addr.cc
@ -71,6 +73,7 @@ SRCS+= ubsan/ubsan_diag.cc
SRCS+= ubsan/ubsan_flags.cc
SRCS+= ubsan/ubsan_handlers.cc
SRCS+= ubsan/ubsan_init.cc
SRCS+= ubsan/ubsan_monitor.cc
SRCS+= ubsan/ubsan_value.cc
.include <bsd.lib.mk>

View File

@ -36,6 +36,7 @@ SRCS+= interception/interception_type_test.cc
SRCS+= sanitizer_common/sancov_flags.cc
SRCS+= sanitizer_common/sanitizer_allocator.cc
SRCS+= sanitizer_common/sanitizer_allocator_checks.cc
SRCS+= sanitizer_common/sanitizer_allocator_report.cc
SRCS+= sanitizer_common/sanitizer_common.cc
SRCS+= sanitizer_common/sanitizer_common_libcdep.cc
SRCS+= sanitizer_common/sanitizer_coverage_libcdep_new.cc
@ -66,6 +67,7 @@ SRCS+= sanitizer_common/sanitizer_symbolizer.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_report.cc
SRCS+= sanitizer_common/sanitizer_termination.cc
SRCS+= sanitizer_common/sanitizer_thread_registry.cc
SRCS+= sanitizer_common/sanitizer_tls_get_addr.cc
@ -75,6 +77,7 @@ SRCS+= ubsan/ubsan_flags.cc
SRCS+= ubsan/ubsan_handlers.cc
SRCS+= ubsan/ubsan_handlers_cxx.cc
SRCS+= ubsan/ubsan_init.cc
SRCS+= ubsan/ubsan_monitor.cc
SRCS+= ubsan/ubsan_type_hash.cc
SRCS+= ubsan/ubsan_type_hash_itanium.cc
SRCS+= ubsan/ubsan_value.cc
@ -90,4 +93,3 @@ CC= ${CXX}
CXXFLAGS.ubsan_handlers_cxx.cc= -frtti
CXXFLAGS.ubsan_type_hash.cc= -frtti
CXXFLAGS.ubsan_type_hash_itanium.cc= -frtti
CXXFLAGS.ubsan_type_hash_win.cc= -frtti

View File

@ -16,6 +16,7 @@ INCS+= hwasan_interface.h
INCS+= linux_syscall_hooks.h
INCS+= lsan_interface.h
INCS+= msan_interface.h
INCS+= netbsd_syscall_hooks.h
INCS+= scudo_interface.h
INCS+= tsan_interface.h
INCS+= tsan_interface_atomic.h

View File

@ -0,0 +1,63 @@
# $FreeBSD$
.include <bsd.init.mk>
LIB= clang_rt.msan-${CRTARCH}
SRCS+= interception/interception_linux.cc
SRCS+= interception/interception_type_test.cc
SRCS+= msan/msan.cc
SRCS+= msan/msan_allocator.cc
SRCS+= msan/msan_chained_origin_depot.cc
SRCS+= msan/msan_interceptors.cc
SRCS+= msan/msan_linux.cc
SRCS+= msan/msan_poisoning.cc
SRCS+= msan/msan_report.cc
SRCS+= msan/msan_thread.cc
SRCS+= sanitizer_common/sancov_flags.cc
SRCS+= sanitizer_common/sanitizer_allocator.cc
SRCS+= sanitizer_common/sanitizer_allocator_checks.cc
SRCS+= sanitizer_common/sanitizer_allocator_report.cc
SRCS+= sanitizer_common/sanitizer_common.cc
SRCS+= sanitizer_common/sanitizer_common_libcdep.cc
SRCS+= sanitizer_common/sanitizer_coverage_libcdep_new.cc
SRCS+= sanitizer_common/sanitizer_deadlock_detector1.cc
SRCS+= sanitizer_common/sanitizer_deadlock_detector2.cc
SRCS+= sanitizer_common/sanitizer_errno.cc
SRCS+= sanitizer_common/sanitizer_file.cc
SRCS+= sanitizer_common/sanitizer_flag_parser.cc
SRCS+= sanitizer_common/sanitizer_flags.cc
SRCS+= sanitizer_common/sanitizer_libc.cc
SRCS+= sanitizer_common/sanitizer_libignore.cc
SRCS+= sanitizer_common/sanitizer_linux.cc
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cc
SRCS+= sanitizer_common/sanitizer_persistent_allocator.cc
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cc
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cc
SRCS+= sanitizer_common/sanitizer_posix.cc
SRCS+= sanitizer_common/sanitizer_posix_libcdep.cc
SRCS+= sanitizer_common/sanitizer_printf.cc
SRCS+= sanitizer_common/sanitizer_procmaps_bsd.cc
SRCS+= sanitizer_common/sanitizer_procmaps_common.cc
SRCS+= sanitizer_common/sanitizer_stackdepot.cc
SRCS+= sanitizer_common/sanitizer_stacktrace.cc
SRCS+= sanitizer_common/sanitizer_stacktrace_libcdep.cc
SRCS+= sanitizer_common/sanitizer_stacktrace_printer.cc
SRCS+= sanitizer_common/sanitizer_suppressions.cc
SRCS+= sanitizer_common/sanitizer_symbolizer.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_report.cc
SRCS+= sanitizer_common/sanitizer_termination.cc
SRCS+= sanitizer_common/sanitizer_thread_registry.cc
SRCS+= sanitizer_common/sanitizer_tls_get_addr.cc
SRCS+= sanitizer_common/sanitizer_unwind_linux_libcdep.cc
SRCS+= ubsan/ubsan_diag.cc
SRCS+= ubsan/ubsan_flags.cc
SRCS+= ubsan/ubsan_handlers.cc
SRCS+= ubsan/ubsan_init.cc
SRCS+= ubsan/ubsan_monitor.cc
SRCS+= ubsan/ubsan_value.cc
.include <bsd.lib.mk>

View File

@ -0,0 +1,16 @@
# $FreeBSD$
.include <bsd.init.mk>
LIB= clang_rt.msan_cxx-${CRTARCH}
SRCS+= msan/msan_new_delete.cc
SRCS+= ubsan/ubsan_handlers_cxx.cc
SRCS+= ubsan/ubsan_type_hash.cc
SRCS+= ubsan/ubsan_type_hash_itanium.cc
.include <bsd.lib.mk>
CXXFLAGS.ubsan_handlers_cxx.cc= -frtti
CXXFLAGS.ubsan_type_hash.cc= -frtti
CXXFLAGS.ubsan_type_hash_itanium.cc= -frtti

View File

@ -30,8 +30,6 @@ SRCS+= sanitizer_common/sanitizer_stackdepot.cc
SRCS+= sanitizer_common/sanitizer_stacktrace.cc
SRCS+= sanitizer_common/sanitizer_stacktrace_printer.cc
SRCS+= sanitizer_common/sanitizer_suppressions.cc
SRCS+= sanitizer_common/sanitizer_symbolizer.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
SRCS+= sanitizer_common/sanitizer_termination.cc
SRCS+= sanitizer_common/sanitizer_thread_registry.cc
SRCS+= sanitizer_common/sanitizer_tls_get_addr.cc

View File

@ -4,12 +4,11 @@
LIB= clang_rt.stats-${CRTARCH}
SRCS+= sanitizer_common/sancov_flags.cc
SRCS+= sanitizer_common/sanitizer_allocator.cc
SRCS+= sanitizer_common/sanitizer_allocator_checks.cc
SRCS+= sanitizer_common/sanitizer_allocator_report.cc
SRCS+= sanitizer_common/sanitizer_common.cc
SRCS+= sanitizer_common/sanitizer_common_libcdep.cc
SRCS+= sanitizer_common/sanitizer_coverage_libcdep_new.cc
SRCS+= sanitizer_common/sanitizer_deadlock_detector1.cc
SRCS+= sanitizer_common/sanitizer_deadlock_detector2.cc
SRCS+= sanitizer_common/sanitizer_errno.cc
@ -37,6 +36,7 @@ SRCS+= sanitizer_common/sanitizer_symbolizer.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_report.cc
SRCS+= sanitizer_common/sanitizer_termination.cc
SRCS+= sanitizer_common/sanitizer_thread_registry.cc
SRCS+= sanitizer_common/sanitizer_tls_get_addr.cc

View File

@ -9,6 +9,7 @@ SRCS+= interception/interception_type_test.cc
SRCS+= sanitizer_common/sancov_flags.cc
SRCS+= sanitizer_common/sanitizer_allocator.cc
SRCS+= sanitizer_common/sanitizer_allocator_checks.cc
SRCS+= sanitizer_common/sanitizer_allocator_report.cc
SRCS+= sanitizer_common/sanitizer_common.cc
SRCS+= sanitizer_common/sanitizer_common_libcdep.cc
SRCS+= sanitizer_common/sanitizer_coverage_libcdep_new.cc
@ -39,6 +40,7 @@ SRCS+= sanitizer_common/sanitizer_symbolizer.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_report.cc
SRCS+= sanitizer_common/sanitizer_termination.cc
SRCS+= sanitizer_common/sanitizer_thread_registry.cc
SRCS+= sanitizer_common/sanitizer_tls_get_addr.cc
@ -77,6 +79,7 @@ SRCS+= ubsan/ubsan_diag.cc
SRCS+= ubsan/ubsan_flags.cc
SRCS+= ubsan/ubsan_handlers.cc
SRCS+= ubsan/ubsan_init.cc
SRCS+= ubsan/ubsan_monitor.cc
SRCS+= ubsan/ubsan_value.cc
.include <bsd.lib.mk>

View File

@ -14,4 +14,3 @@ SRCS+= ubsan/ubsan_type_hash_itanium.cc
CXXFLAGS.ubsan_handlers_cxx.cc= -frtti
CXXFLAGS.ubsan_type_hash.cc= -frtti
CXXFLAGS.ubsan_type_hash_itanium.cc= -frtti
CXXFLAGS.ubsan_type_hash_win.cc= -frtti

View File

@ -9,6 +9,7 @@ SRCS+= interception/interception_type_test.cc
SRCS+= sanitizer_common/sancov_flags.cc
SRCS+= sanitizer_common/sanitizer_allocator.cc
SRCS+= sanitizer_common/sanitizer_allocator_checks.cc
SRCS+= sanitizer_common/sanitizer_allocator_report.cc
SRCS+= sanitizer_common/sanitizer_common.cc
SRCS+= sanitizer_common/sanitizer_common_libcdep.cc
SRCS+= sanitizer_common/sanitizer_coverage_libcdep_new.cc
@ -39,6 +40,7 @@ SRCS+= sanitizer_common/sanitizer_symbolizer.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
SRCS+= sanitizer_common/sanitizer_symbolizer_report.cc
SRCS+= sanitizer_common/sanitizer_termination.cc
SRCS+= sanitizer_common/sanitizer_thread_registry.cc
SRCS+= sanitizer_common/sanitizer_tls_get_addr.cc
@ -49,6 +51,8 @@ SRCS+= ubsan/ubsan_flags.cc
SRCS+= ubsan/ubsan_handlers.cc
SRCS+= ubsan/ubsan_init.cc
SRCS+= ubsan/ubsan_init_standalone.cc
SRCS+= ubsan/ubsan_init_standalone_preinit.cc
SRCS+= ubsan/ubsan_monitor.cc
SRCS+= ubsan/ubsan_signals_standalone.cc
SRCS+= ubsan/ubsan_value.cc

View File

@ -1324,6 +1324,7 @@ OLD_FILES+=usr/lib/clang/7.0.0/include/sanitizer/hwasan_interface.h
OLD_FILES+=usr/lib/clang/7.0.0/include/sanitizer/linux_syscall_hooks.h
OLD_FILES+=usr/lib/clang/7.0.0/include/sanitizer/lsan_interface.h
OLD_FILES+=usr/lib/clang/7.0.0/include/sanitizer/msan_interface.h
OLD_FILES+=usr/lib/clang/7.0.0/include/sanitizer/netbsd_syscall_hooks.h
OLD_FILES+=usr/lib/clang/7.0.0/include/sanitizer/scudo_interface.h
OLD_FILES+=usr/lib/clang/7.0.0/include/sanitizer/tsan_interface.h
OLD_FILES+=usr/lib/clang/7.0.0/include/sanitizer/tsan_interface_atomic.h
@ -1439,6 +1440,10 @@ OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.asan-x86_64.a
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.asan-x86_64.so
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.asan_cxx-i386.a
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.asan_cxx-x86_64.a
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.msan-i386.a
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.msan-x86_64.a
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.msan_cxx-i386.a
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.msan_cxx-x86_64.a
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.profile-arm.a
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.profile-armhf.a
OLD_FILES+=usr/lib/clang/7.0.0/lib/freebsd/libclang_rt.profile-i386.a