From 77827c25b63e7a292ca45eee6bceeda7c8600af4 Mon Sep 17 00:00:00 2001 From: Tharo <17233964+Thar0@users.noreply.github.com> Date: Mon, 8 Sep 2025 19:15:14 +0100 Subject: [PATCH] Add plf map file resolution to sym_info.py, local symbol merging is broken --- sym_info.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sym_info.py b/sym_info.py index afee014518..a853905613 100755 --- a/sym_info.py +++ b/sym_info.py @@ -215,7 +215,6 @@ def merge_local_symbols( file.setSymbolList(symbols) - def find_symbols_by_name( map_file: mapfile_parser.mapfile.MapFile, sym_name: str ) -> list[mapfile_parser.mapfile.FoundSymbolInfo]: @@ -354,6 +353,13 @@ def sym_info_main(): map_file = mapfile_parser.mapfile.MapFile() map_file.readMapFile(map_path) + def resolver(x: Path) -> Path|None: + if x.suffix == ".plf": + plf_map_path = x.with_suffix(".map") + if plf_map_path.exists(): + return plf_map_path + return None + map_file = map_file.resolvePartiallyLinkedFiles(resolver) if elf_path and elf_path.exists(): local_symbols = read_local_symbols_from_mdebug(elf_path)