[PATCH] D99386: [compiler-rt][hwasan] Add definition for Symbolizer::SymbolizeFrame

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 25 15:24:09 PDT 2021


leonardchan created this revision.
leonardchan added reviewers: mcgrathr, phosek.
leonardchan added a project: Sanitizers.
Herald added a subscriber: dberris.
leonardchan requested review of this revision.
Herald added a subscriber: Sanitizers.

This is undefined if `SANITIZER_SYMBOLIZER_MARKUP` is 1, which is the case for Fuchsia, and will result in a undefined symbol error. This function is needed by hwasan for online symbolization, but is not needed for us since we do offline symbolization.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99386

Files:
  compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp


Index: compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp
@@ -54,6 +54,10 @@
   return false;
 }
 
+// This is mainly used by hwasan for online symbolization. This isn't needed
+// since hwasan can always just dump stack frames for offline symbolization.
+bool Symbolizer::SymbolizeFrame(uptr addr, FrameInfo *info) { return false; }
+
 // This is used in some places for suppression checking, which we
 // don't really support for Fuchsia.  It's also used in UBSan to
 // identify a PC location to a function name, so we always fill in


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99386.333437.patch
Type: text/x-patch
Size: 757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210325/ab2ca41d/attachment.bin>


More information about the cfe-commits mailing list