From 565ef06e917c6f326f8d528dc8fa6c6de88a8753 Mon Sep 17 00:00:00 2001 From: KJ Tsanaktsidis Date: Wed, 7 Feb 2024 18:35:14 +1100 Subject: [PATCH] Ignore _odr_asan symbols in leaked-globals ASAN includes these to detect violations of the ODR rule. [Bug #20221] --- tool/leaked-globals | 1 + 1 file changed, 1 insertion(+) 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