mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-12-25 20:07:15 +00:00
be more aggressive in the wa
This commit is contained in:
parent
4b93a6b789
commit
6632b2b4d6
@ -1,13 +1,34 @@
|
||||
Index: llvm-toolchain-snapshot-10~svn368743/compiler-rt/lib/hwasan/CMakeLists.txt
|
||||
Index: llvm-toolchain-snapshot-10~svn369645/compiler-rt/lib/hwasan/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot-10~svn368743.orig/compiler-rt/lib/hwasan/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot-10~svn368743/compiler-rt/lib/hwasan/CMakeLists.txt
|
||||
@@ -40,7 +40,7 @@ append_list_if(COMPILER_RT_HWASAN_WITH_I
|
||||
--- llvm-toolchain-snapshot-10~svn369645.orig/compiler-rt/lib/hwasan/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot-10~svn369645/compiler-rt/lib/hwasan/CMakeLists.txt
|
||||
@@ -40,9 +40,9 @@ append_list_if(COMPILER_RT_HWASAN_WITH_I
|
||||
|
||||
set(HWASAN_RTL_CFLAGS ${SANITIZER_COMMON_CFLAGS})
|
||||
append_rtti_flag(OFF HWASAN_RTL_CFLAGS)
|
||||
-append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC HWASAN_RTL_CFLAGS)
|
||||
+append_list_if(COMPILER_RT_HAS_FPIC_FLAG -fPIC -fuse-ld=gold HWASAN_RTL_CFLAGS)
|
||||
# Prevent clang from generating libc calls.
|
||||
append_list_if(COMPILER_RT_HAS_FFREESTANDING_FLAG -ffreestanding HWASAN_RTL_CFLAGS)
|
||||
-append_list_if(COMPILER_RT_HAS_FFREESTANDING_FLAG -ffreestanding HWASAN_RTL_CFLAGS)
|
||||
+append_list_if(COMPILER_RT_HAS_FFREESTANDING_FLAG -ffreestanding -fuse-ld=gold HWASAN_RTL_CFLAGS)
|
||||
|
||||
set(HWASAN_DYNAMIC_LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS})
|
||||
|
||||
@@ -54,7 +54,7 @@ if(ANDROID)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
-set(HWASAN_DYNAMIC_CFLAGS ${HWASAN_RTL_CFLAGS})
|
||||
+set(HWASAN_DYNAMIC_CFLAGS ${HWASAN_RTL_CFLAGS} -fuse-ld=gold)
|
||||
append_list_if(COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC
|
||||
-ftls-model=initial-exec HWASAN_DYNAMIC_CFLAGS)
|
||||
append_list_if(MSVC /DEBUG HWASAN_DYNAMIC_LINK_FLAGS)
|
||||
@@ -129,7 +129,7 @@ foreach(arch ${HWASAN_SUPPORTED_ARCH})
|
||||
LIBS clang_rt.hwasan-${arch} clang_rt.hwasan_cxx-${arch}
|
||||
EXTRA hwasan.syms.extra)
|
||||
set(VERSION_SCRIPT_FLAG
|
||||
- -Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/clang_rt.hwasan-dynamic-${arch}.vers)
|
||||
+ -Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/clang_rt.hwasan-dynamic-${arch}.vers -fuse-ld=gold)
|
||||
set_property(SOURCE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
|
||||
APPEND PROPERTY
|
||||
|
||||
Loading…
Reference in New Issue
Block a user