From 039096ee7137ac64ae8c02880b3cf9da84bb01ad Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Thu, 14 Oct 2021 14:49:07 -0700 Subject: [PATCH] [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 --- compiler-rt/lib/hwasan/scripts/hwasan_symbolize | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/lib/hwasan/scripts/hwasan_symbolize b/compiler-rt/lib/hwasan/scripts/hwasan_symbolize index dd5f859561e1..f67dbe4aa9ea 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):