[PATCH] D50865: [hwasan] Enable Android logging.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 16 14:32:06 PDT 2018
eugenis created this revision.
eugenis added reviewers: vitalybuka, kcc.
Herald added subscribers: kubamracek, srhines.
Enable syslog as soon as the shadow is mapped.
https://reviews.llvm.org/D50865
Files:
compiler-rt/lib/hwasan/hwasan.cc
Index: compiler-rt/lib/hwasan/hwasan.cc
===================================================================
--- compiler-rt/lib/hwasan/hwasan.cc
+++ compiler-rt/lib/hwasan/hwasan.cc
@@ -198,6 +198,9 @@
__hwasan_shadow_init();
MadviseShadow();
+ // This may call libc -> needs initialized shadow.
+ AndroidLogInit();
+
InitializeInterceptors();
InstallDeadlySignalHandlers(HwasanOnDeadlySignal);
InstallAtExitHandler(); // Needs __cxa_atexit interceptor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50865.161111.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180816/e074adb4/attachment.bin>
More information about the llvm-commits
mailing list