Skip to content

Commit

Permalink
[hwasan] Add default "/" prefix.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
eugenis committed Oct 14, 2021
1 parent acb3b18 commit 039096e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler-rt/lib/hwasan/scripts/hwasan_symbolize
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 039096e

Please sign in to comment.