[compiler-rt] 039096e - [hwasan] Add default "/" prefix.

Evgenii Stepanov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 14 15:03:25 PDT 2021


Author: Evgenii Stepanov
Date: 2021-10-14T14:56:55-07:00
New Revision: 039096ee7137ac64ae8c02880b3cf9da84bb01ad

URL: https://github.com/llvm/llvm-project/commit/039096ee7137ac64ae8c02880b3cf9da84bb01ad
DIFF: https://github.com/llvm/llvm-project/commit/039096ee7137ac64ae8c02880b3cf9da84bb01ad.diff

LOG: [hwasan] Add default "/" prefix.

Add a default "/" prefix to the symbol search path in the
symbolization script. Without this, the binary itself is not considered
a valid source of symbol info.

Differential Revision: https://reviews.llvm.org/D111840

Added: 
    

Modified: 
    compiler-rt/lib/hwasan/scripts/hwasan_symbolize

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/hwasan/scripts/hwasan_symbolize b/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
index dd5f859561e17..f67dbe4aa9ead 100755
--- a/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
+++ b/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
@@ -200,6 +200,7 @@ if not binary_prefixes:
   if 'ANDROID_PRODUCT_OUT' in os.environ:
     product_out = os.path.join(os.environ['ANDROID_PRODUCT_OUT'], 'symbols')
     binary_prefixes.append(product_out)
+  binary_prefixes.append('/')
 
 for p in binary_prefixes:
   if not os.path.isdir(p):


        


More information about the llvm-commits mailing list