scripts/logging: Allow targets that prefix global symbols with '_'

RX adds an underscore to all global symbols, so when we look for
log_const_ globals, we need to allow for that.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2025-05-12 14:56:39 -04:00 committed by Benjamin Cabé
parent 4b1c96f377
commit 296d81ad58

View File

@ -159,7 +159,7 @@ def find_log_const_symbols(elf):
continue
for symbol in section.iter_symbols():
if symbol.name.startswith("log_const_"):
if symbol.name.startswith("log_const_") or symbol.name.startswith("_log_const_"):
ret_list.append(symbol)
return ret_list