Ignore retguard symbols when looking for leaked symbols

retguard symbols are added on OpenBSD as part of stack protection.
They should be ignored by the leaked symbols checker, just as we
ignore asan symbols.
This commit is contained in:
Jeremy Evans 2024-05-29 16:06:32 -07:00
parent c90cb4d743
commit ac429df64f

View File

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