Revert "[TSan] Attempt to fix linker error for Linux on AArch64"

This reverts commit be4148062b.

llvm-svn: 365367
This commit is contained in:
Julian Lettner 2019-07-08 18:37:36 +00:00
parent 7d8f30e6b2
commit fa0d1d8e45
2 changed files with 9 additions and 1 deletions

View File

@ -69,7 +69,7 @@ void *__libc_stack_end = 0;
#if SANITIZER_LINUX && defined(__aarch64__)
void InitializeGuardPtr() __attribute__((visibility("hidden")));
extern "C" __tsan::uptr _tsan_pointer_chk_guard = 0;
extern "C" __tsan::uptr _tsan_pointer_chk_guard;
#endif
namespace __tsan {

View File

@ -3,6 +3,14 @@
#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