[compiler-rt] r364700 - [TSan] Attempt to fix linker error for Linux on AArch64
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 17:40:45 PDT 2019
Author: yln
Date: Fri Jun 28 17:40:45 2019
New Revision: 364700
URL: http://llvm.org/viewvc/llvm-project?rev=364700&view=rev
Log:
[TSan] Attempt to fix linker error for Linux on AArch64
Introduced in 5be69ebe121d5b6ea284c3dc6d1cd5098c94f353.
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_aarch64.S
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc?rev=364700&r1=364699&r2=364700&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc Fri Jun 28 17:40:45 2019
@@ -69,8 +69,9 @@ void *__libc_stack_end = 0;
#if SANITIZER_LINUX && defined(__aarch64__)
void InitializeGuardPtr() __attribute__((visibility("hidden")));
-extern "C" __tsan::uptr _tsan_pointer_chk_guard;
#endif
+// TODO(yln): only define this when necessary
+extern "C" __tsan::uptr _tsan_pointer_chk_guard = 0;
namespace __tsan {
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_aarch64.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_aarch64.S?rev=364700&r1=364699&r2=364700&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_aarch64.S (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_aarch64.S Fri Jun 28 17:40:45 2019
@@ -3,14 +3,6 @@
#include "sanitizer_common/sanitizer_asm.h"
-#if !defined(__APPLE__)
-.section .bss
-.type __tsan_pointer_chk_guard, %object
-ASM_SIZE(ASM_SYMBOL_INTERCEPTOR(__tsan_pointer_chk_guard))
-__tsan_pointer_chk_guard:
-.zero 8
-#endif
-
#if defined(__APPLE__)
.align 2
More information about the llvm-commits
mailing list