check_cxx_runtime: ignore glibc symbol versions

nm on glibc prints __cxa_atexit@GLIBC_2.2.5, which the allowlist for the
libc-provided __cxa_atexit/__cxa_finalize did not match.
This commit is contained in:
Max Lv
2026-10-14 22:51:15 +08:00
parent 21c13e8ddc
commit e16c6bcd3e
+2 -1
View File
@@ -40,7 +40,8 @@ def undefined_symbols(nm, path):
line = line.strip()
if not line or line.endswith(":"):
continue # archive member headers
symbols.add(line.split()[-1])
# glibc nm prints versioned names (__cxa_atexit@GLIBC_2.2.5).
symbols.add(line.split()[-1].split("@")[0])
return symbols