From ac429df64fdec71ef705ddb984ad9f80ac03f249 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Wed, 29 May 2024 16:06:32 -0700 Subject: [PATCH] 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. --- tool/leaked-globals | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/leaked-globals b/tool/leaked-globals index 4aa2aff996..05ce02658b 100755 --- a/tool/leaked-globals +++ b/tool/leaked-globals @@ -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