Skip to content

Commit 628e766

Browse files
committedAug 16, 2018
[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 llvm-svn: 339950
1 parent b9fb2ae commit 628e766

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎compiler-rt/lib/hwasan/hwasan.cc

+3
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ void __hwasan_init() {
198198
__hwasan_shadow_init();
199199
MadviseShadow();
200200

201+
// This may call libc -> needs initialized shadow.
202+
AndroidLogInit();
203+
201204
InitializeInterceptors();
202205
InstallDeadlySignalHandlers(HwasanOnDeadlySignal);
203206
InstallAtExitHandler(); // Needs __cxa_atexit interceptor.

0 commit comments

Comments
 (0)
Please sign in to comment.