[compiler-rt] r339950 - [hwasan] Enable Android logging.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 16 14:56:04 PDT 2018
Author: eugenis
Date: Thu Aug 16 14:56:04 2018
New Revision: 339950
URL: http://llvm.org/viewvc/llvm-project?rev=339950&view=rev
Log:
[hwasan] Enable Android logging.
Summary: Enable syslog as soon as the shadow is mapped.
Reviewers: vitalybuka, kcc
Subscribers: srhines, kubamracek, llvm-commits
Differential Revision: https://reviews.llvm.org/D50865
Modified:
compiler-rt/trunk/lib/hwasan/hwasan.cc
Modified: compiler-rt/trunk/lib/hwasan/hwasan.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/hwasan/hwasan.cc?rev=339950&r1=339949&r2=339950&view=diff
==============================================================================
--- compiler-rt/trunk/lib/hwasan/hwasan.cc (original)
+++ compiler-rt/trunk/lib/hwasan/hwasan.cc Thu Aug 16 14:56:04 2018
@@ -198,6 +198,9 @@ void __hwasan_init() {
__hwasan_shadow_init();
MadviseShadow();
+ // This may call libc -> needs initialized shadow.
+ AndroidLogInit();
+
InitializeInterceptors();
InstallDeadlySignalHandlers(HwasanOnDeadlySignal);
InstallAtExitHandler(); // Needs __cxa_atexit interceptor.
More information about the llvm-commits
mailing list