Handle CV-qualifiers in __gnu_cxx audit_symbols exclusion

libssl has a _ZK9__gnu_cxx symbol. The K comes from <CV-qualifiers>
below. Adjust the regex to handle all possible qualifiers.

https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangle.CV-qualifiers

Bug: 524722668
Change-Id: Iaedd07cc9249dc8bcdffccc446573a18320880fa
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/98547
Commit-Queue: David Benjamin <davidben@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
Reviewed-by: Lily Chen <chlily@google.com>
This commit is contained in:
David Benjamin
2026-07-08 13:42:53 -04:00
committed by boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com
parent 0e8895bd09
commit da90150e6d
+1 -1
View File
@@ -50,7 +50,7 @@ var skipWeakSymbols = []*regexp.Regexp{
regexp.MustCompile(`^DW\.ref\.__gxx_personality_.*`), // libstdc++ exception handling regexp.MustCompile(`^DW\.ref\.__gxx_personality_.*`), // libstdc++ exception handling
regexp.MustCompile(`^_Z6memchr.*`), // memchr() regexp.MustCompile(`^_Z6memchr.*`), // memchr()
regexp.MustCompile(`^_Z6strchr.*`), // strchr() regexp.MustCompile(`^_Z6strchr.*`), // strchr()
regexp.MustCompile(`^_ZN9__gnu_cxx.*`), // __gnu_cxx:: regexp.MustCompile(`^_ZNr?V?K?9__gnu_cxx.*`), // __gnu_cxx::
regexp.MustCompile(`^_ZTI.*`), // typeinfo regexp.MustCompile(`^_ZTI.*`), // typeinfo
regexp.MustCompile(`^_ZTS.*`), // typeinfo name regexp.MustCompile(`^_ZTS.*`), // typeinfo name
regexp.MustCompile(`^_ZTV.*`), // vtable regexp.MustCompile(`^_ZTV.*`), // vtable