diff options
author | Francis Ricci <francisjricci@gmail.com> | 2017-01-07 00:38:24 +0000 |
---|---|---|
committer | Francis Ricci <francisjricci@gmail.com> | 2017-01-07 00:38:24 +0000 |
commit | fcde2a708f97e11f656f0c2dae07546764594296 (patch) | |
tree | 7b8acc30c14191d3bc47554ca501a170f07b1667 | |
parent | 1b637458f6de8fdae53bd54ed6b9bede000c332c (diff) | |
download | bcm5719-llvm-fcde2a708f97e11f656f0c2dae07546764594296.tar.gz bcm5719-llvm-fcde2a708f97e11f656f0c2dae07546764594296.zip |
Revert "Enable weak hooks on darwin"
Reverts accidental upload.
This reverts commit 421408c0f2cc811bcf9a945be6e95e46f76cb358.
llvm-svn: 291316
-rw-r--r-- | compiler-rt/cmake/Modules/SanitizerUtils.cmake | 9 | ||||
-rw-r--r-- | compiler-rt/lib/asan/CMakeLists.txt | 5 | ||||
-rw-r--r-- | compiler-rt/lib/asan/weak_symbols.txt | 3 | ||||
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h | 2 | ||||
-rw-r--r-- | compiler-rt/lib/sanitizer_common/weak_symbols.txt | 6 | ||||
-rw-r--r-- | compiler-rt/lib/stats/CMakeLists.txt | 8 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/CMakeLists.txt | 5 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/CMakeLists.txt | 4 | ||||
-rw-r--r-- | compiler-rt/lib/ubsan/weak_symbols.txt | 1 |
9 files changed, 1 insertions, 42 deletions
diff --git a/compiler-rt/cmake/Modules/SanitizerUtils.cmake b/compiler-rt/cmake/Modules/SanitizerUtils.cmake index 6ead24e12f8..c66083c24f4 100644 --- a/compiler-rt/cmake/Modules/SanitizerUtils.cmake +++ b/compiler-rt/cmake/Modules/SanitizerUtils.cmake @@ -46,15 +46,6 @@ macro(add_sanitizer_rt_symbols name) endforeach() endmacro() -function(add_weak_symbols libname linkflags) - file(STRINGS "${COMPILER_RT_SOURCE_DIR}/lib/${libname}/weak_symbols.txt" WEAK_SYMBOLS) - set(local_linkflags ${${linkflags}}) - foreach(SYMBOL ${WEAK_SYMBOLS}) - set(local_linkflags ${local_linkflags} -Wl,-U,${SYMBOL}) - endforeach() - set(${linkflags} ${local_linkflags} PARENT_SCOPE) -endfunction() - macro(add_sanitizer_rt_version_list name) set(vers ${CMAKE_CURRENT_BINARY_DIR}/${name}.vers) cmake_parse_arguments(ARG "" "" "LIBS;EXTRA" ${ARGN}) diff --git a/compiler-rt/lib/asan/CMakeLists.txt b/compiler-rt/lib/asan/CMakeLists.txt index 4bebb0a45a6..1258ef6165b 100644 --- a/compiler-rt/lib/asan/CMakeLists.txt +++ b/compiler-rt/lib/asan/CMakeLists.txt @@ -106,10 +106,6 @@ endif() add_compiler_rt_component(asan) if(APPLE) - add_weak_symbols("asan" WEAK_SYMBOL_LINKFLAGS) - add_weak_symbols("ubsan" WEAK_SYMBOL_LINKFLAGS) - add_weak_symbols("sanitizer_common" WEAK_SYMBOL_LINKFLAGS) - add_compiler_rt_runtime(clang_rt.asan SHARED OS ${SANITIZER_COMMON_SUPPORTED_OS} @@ -121,7 +117,6 @@ if(APPLE) RTLSanCommon RTUbsan CFLAGS ${ASAN_DYNAMIC_CFLAGS} - LINKFLAGS ${WEAK_SYMBOL_LINKFLAGS} DEFS ${ASAN_DYNAMIC_DEFINITIONS} PARENT_TARGET asan) else() diff --git a/compiler-rt/lib/asan/weak_symbols.txt b/compiler-rt/lib/asan/weak_symbols.txt deleted file mode 100644 index ba7b0272c2b..00000000000 --- a/compiler-rt/lib/asan/weak_symbols.txt +++ /dev/null @@ -1,3 +0,0 @@ -___asan_default_options -___asan_default_suppressions -___asan_on_error diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h b/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h index 5338f79423c..8ebe91a6b3a 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h @@ -32,7 +32,7 @@ # define SANITIZER_WEAK_ATTRIBUTE __attribute__((weak)) #endif -#if (SANITIZER_LINUX || SANITIZER_MAC || SANITIZER_WINDOWS) && !SANITIZER_GO +#if (SANITIZER_LINUX || SANITIZER_WINDOWS) && !SANITIZER_GO # define SANITIZER_SUPPORTS_WEAK_HOOKS 1 #else # define SANITIZER_SUPPORTS_WEAK_HOOKS 0 diff --git a/compiler-rt/lib/sanitizer_common/weak_symbols.txt b/compiler-rt/lib/sanitizer_common/weak_symbols.txt deleted file mode 100644 index 8a1e32b8041..00000000000 --- a/compiler-rt/lib/sanitizer_common/weak_symbols.txt +++ /dev/null @@ -1,6 +0,0 @@ -___sanitizer_free_hook -___sanitizer_malloc_hook -___sanitizer_symbolize_code -___sanitizer_symbolize_data -___sanitizer_symbolize_demangle -___sanitizer_symbolize_flush diff --git a/compiler-rt/lib/stats/CMakeLists.txt b/compiler-rt/lib/stats/CMakeLists.txt index ec75262d46f..33ab1aea685 100644 --- a/compiler-rt/lib/stats/CMakeLists.txt +++ b/compiler-rt/lib/stats/CMakeLists.txt @@ -5,14 +5,8 @@ set_target_properties(stats PROPERTIES FOLDER "Compiler-RT Misc") if(APPLE) set(STATS_LIB_FLAVOR SHARED) - - add_weak_symbols("asan" WEAK_SYMBOL_LINKFLAGS) - add_weak_symbols("ubsan" WEAK_SYMBOL_LINKFLAGS) - add_weak_symbols("sanitizer_common" WEAK_SYMBOL_LINKFLAGS) else() set(STATS_LIB_FLAVOR STATIC) - - set(WEAK_SYMBOL_LINKFLAGS) endif() add_compiler_rt_runtime(clang_rt.stats @@ -23,7 +17,6 @@ add_compiler_rt_runtime(clang_rt.stats OBJECT_LIBS RTSanitizerCommon RTSanitizerCommonLibc CFLAGS ${SANITIZER_COMMON_CFLAGS} - LINKFLAGS ${WEAK_SYMBOL_LINKFLAGS} PARENT_TARGET stats) add_compiler_rt_runtime(clang_rt.stats_client @@ -32,5 +25,4 @@ add_compiler_rt_runtime(clang_rt.stats_client OS ${SANITIZER_COMMON_SUPPORTED_OS} SOURCES stats_client.cc CFLAGS ${SANITIZER_COMMON_CFLAGS} - LINKFLAGS ${WEAK_SYMBOL_LINKFLAGS} PARENT_TARGET stats) diff --git a/compiler-rt/lib/tsan/CMakeLists.txt b/compiler-rt/lib/tsan/CMakeLists.txt index 75d26349ae3..b26a884b1a4 100644 --- a/compiler-rt/lib/tsan/CMakeLists.txt +++ b/compiler-rt/lib/tsan/CMakeLists.txt @@ -107,10 +107,6 @@ if(APPLE) # Pass ASM file directly to the C++ compiler. set_source_files_properties(${TSAN_ASM_SOURCES} PROPERTIES LANGUAGE C) endif() - - add_weak_symbols("ubsan" WEAK_SYMBOL_LINKFLAGS) - add_weak_symbols("sanitizer_common" WEAK_SYMBOL_LINKFLAGS) - add_compiler_rt_runtime(clang_rt.tsan SHARED OS ${TSAN_SUPPORTED_OS} @@ -121,7 +117,6 @@ if(APPLE) RTSanitizerCommonLibc RTUbsan CFLAGS ${TSAN_RTL_CFLAGS} - LINKFLAGS ${WEAK_SYMBOL_LINKFLAGS} PARENT_TARGET tsan) add_compiler_rt_object_libraries(RTTsan_dynamic OS ${TSAN_SUPPORTED_OS} diff --git a/compiler-rt/lib/ubsan/CMakeLists.txt b/compiler-rt/lib/ubsan/CMakeLists.txt index ebff36019d4..036c65a097f 100644 --- a/compiler-rt/lib/ubsan/CMakeLists.txt +++ b/compiler-rt/lib/ubsan/CMakeLists.txt @@ -56,9 +56,6 @@ if(APPLE) SOURCES ${UBSAN_STANDALONE_SOURCES} CFLAGS ${UBSAN_STANDALONE_CFLAGS}) - add_weak_symbols("ubsan" WEAK_SYMBOL_LINKFLAGS) - add_weak_symbols("sanitizer_common" WEAK_SYMBOL_LINKFLAGS) - add_compiler_rt_runtime(clang_rt.ubsan SHARED OS ${SANITIZER_COMMON_SUPPORTED_OS} @@ -67,7 +64,6 @@ if(APPLE) RTUbsan_standalone RTSanitizerCommon RTSanitizerCommonLibc - LINKFLAGS ${WEAK_SYMBOL_LINKFLAGS} PARENT_TARGET ubsan) endif() diff --git a/compiler-rt/lib/ubsan/weak_symbols.txt b/compiler-rt/lib/ubsan/weak_symbols.txt deleted file mode 100644 index 69e1bc1857e..00000000000 --- a/compiler-rt/lib/ubsan/weak_symbols.txt +++ /dev/null @@ -1 +0,0 @@ -___ubsan_default_options |