summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2024-02-07 18:35:14 +1100
committerKJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>2024-02-07 19:42:07 +1100
commit565ef06e917c6f326f8d528dc8fa6c6de88a8753 (patch)
tree204fabcf6f0ea3457788174219cbe3ac732ee0a5
parent42c36269403baac67b0d5dc1d6d6e31168cf6a1f (diff)
Ignore _odr_asan symbols in leaked-globals
ASAN includes these to detect violations of the ODR rule. [Bug #20221]
-rwxr-xr-xtool/leaked-globals1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/leaked-globals b/tool/leaked-globals
index b80ae39073..4aa2aff996 100755
--- a/tool/leaked-globals
+++ b/tool/leaked-globals
@@ -88,6 +88,7 @@ Pipe.new(NM + ARGV).each do |line|
next unless n.sub!(/^#{SYMBOL_PREFIX}/o, "")
next if n.include?(".")
next if !so and n.start_with?("___asan_")
+ next if !so and n.start_with?("__odr_asan_")
case n
when /\A(?:Init_|InitVM_|pm_|[Oo]nig|dln_|coroutine_)/
next