summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2024-05-29 16:06:32 -0700
committerJeremy Evans <code@jeremyevans.net>2024-06-04 13:04:41 -0700
commitac429df64fdec71ef705ddb984ad9f80ac03f249 (patch)
tree8bd0c0d712f78813e364bd4762a72f798c12d734
parentc90cb4d743328daa7d665309e761672cf18d56f6 (diff)
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.
-rwxr-xr-xtool/leaked-globals1
1 files changed, 1 insertions, 0 deletions
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