From c9e31062549e1edb86de504c0b12375afee10390 Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Tue, 29 Oct 2024 08:53:34 +0000 Subject: [PATCH] fix debug build --- tools/build/append_symbol_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/append_symbol_table.py b/tools/build/append_symbol_table.py index 79d232b9a..c931b96ef 100644 --- a/tools/build/append_symbol_table.py +++ b/tools/build/append_symbol_table.py @@ -59,7 +59,7 @@ def readelf(elf: str) -> List[Tuple[int, str, str, int]]: else: break if closest_addr is not None: - name, segment = addr2name[addr] + name, segment = addr2name[closest_addr] symbols.append((addr, name, file_basename, line_number, segment2romstart[segment])) # non-debug builds