Ignore _odr_asan symbols in leaked-globals

ASAN includes these to detect violations of the ODR rule.

[Bug #20221]
This commit is contained in:
KJ Tsanaktsidis 2024-02-07 18:35:14 +11:00
Родитель 42c3626940
Коммит 565ef06e91
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -88,6 +88,7 @@ Pipe.new(NM + ARGV).each do |line|
next unless n.sub!(/^#{SYMBOL_PREFIX}/o, "") next unless n.sub!(/^#{SYMBOL_PREFIX}/o, "")
next if n.include?(".") next if n.include?(".")
next if !so and n.start_with?("___asan_") next if !so and n.start_with?("___asan_")
next if !so and n.start_with?("__odr_asan_")
case n case n
when /\A(?:Init_|InitVM_|pm_|[Oo]nig|dln_|coroutine_)/ when /\A(?:Init_|InitVM_|pm_|[Oo]nig|dln_|coroutine_)/
next next