From 87b7c37bc23aae331d48318b68141d005157ecce Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Wed, 30 Sep 2026 12:37:49 -0400 Subject: [PATCH] debug_map_diff.py: Indicate when missing symbols are unused/stripped --- tools/utilities/debug_map_diff.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/utilities/debug_map_diff.py b/tools/utilities/debug_map_diff.py index 46a5028f7..1f2d5ef4d 100755 --- a/tools/utilities/debug_map_diff.py +++ b/tools/utilities/debug_map_diff.py @@ -402,7 +402,10 @@ def print_diff_debug_map(target_object_name: str, call_ninja: bool, print_size_d continue if symbol_name not in base_symbols: missing_target_symbols.add(symbol_name) - print("MISSING: " + symbol_name, "0x%X" % target_symbol.size) + suffix = "" + if target_symbol.stripped: + suffix = "(UNUSED)" + print("MISSING: " + symbol_name, "0x%X" % target_symbol.size, suffix) print("==================================================") print(f"=== Summary for object: {target_object_name}")