From e16c6bcd3e1e97fe9fd6b54174b8ac3dcf54c5df Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 14 Oct 2026 19:57:01 +0800 Subject: [PATCH] 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. --- scripts/check_cxx_runtime.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/check_cxx_runtime.py b/scripts/check_cxx_runtime.py index a1276d8b..ac0bd178 100644 --- a/scripts/check_cxx_runtime.py +++ b/scripts/check_cxx_runtime.py @@ -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