[compiler-rt] [HWASan] Fix symbol indexing (PR #135967)

Stefan Bossbaly via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 17 08:07:24 PDT 2025


================
@@ -268,13 +284,16 @@ class Symbolizer:
         for fn in fnames:
           filename = os.path.join(dname, fn)
           try:
-            bid = get_buildid(filename)
+            found_symbols, bid = read_elf(filename)
           except FileNotFoundError:
             continue
           except Exception as e:
             print("Failed to parse {}: {}".format(filename, e), file=sys.stderr)
             continue
-          if bid is not None:
+          if found_symbols and bid is not None:
----------------
StefanBossbaly wrote:

Done!

https://github.com/llvm/llvm-project/pull/135967


More information about the llvm-commits mailing list