Skip to content

Commit

Permalink
Exclude labels from force_symbols extract to fix MAD
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshSchreuder committed Feb 26, 2025
1 parent ada8482 commit 0d6994a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,11 @@ def print_elf_symbols(file, elf_file_name, no_default):
symbols = get_elf_symbols(elf_file_name)
sorted_symbols = sorted(symbols.items(), key=lambda item: item[1])
for name, offset in sorted_symbols:
if no_default and (name.startswith("func_") or name.startswith("D_")):
if (
no_default
and (name.startswith("func_") or name.startswith("D_"))
or name.startswith(".L")
):
continue
print(f"{name} = 0x{offset:08X}; // allow_duplicated:True", file=file)

Expand Down

0 comments on commit 0d6994a

Please sign in to comment.