Skip to content

Commit

Permalink
Update rodata for mad to resolve issue
Browse files Browse the repository at this point in the history
Co-authored-by: ProjectOblivion <[email protected]>
  • Loading branch information
JoshSchreuder and ProjectOblivion committed Feb 26, 2025
1 parent 0d6994a commit e355243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions config/splat.us.stmad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ options:
undefined_syms_auto_path: config/undefined_syms_auto.stmad.txt
find_file_boundaries: yes
use_legacy_include_asm: no
migrate_rodata_to_functions: no
migrate_rodata_to_functions: yes
asm_jtbl_label_macro: jlabel
extensions_path: tools/splat_ext
string_encoding: SHIFT-JIS
Expand Down Expand Up @@ -76,12 +76,12 @@ segments:
- [0x1774, data]
- [0x19A4, data]
- [0x1D14, data]
- [0xD794, rodata]
- [0xD794, .rodata, D8C8]
- [0xD7CC, .rodata, e_red_door] # EntityRedDoor
- [0xD83C, .rodata, e_collect]
- [0xD85C, .rodata, e_collect] # EntityEquipItemDrop
- [0xD874, .rodata, e_misc]
- [0xD8AC, rodata]
- [0xD8AC, .rodata, 17B94]
- [0xD8C0, .rodata, prim_helpers]
- [0xD8C8, c]
- [0xE5AC, c, st_debug]
Expand Down
6 changes: 1 addition & 5 deletions tools/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,7 @@ 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_"))
or name.startswith(".L")
):
if no_default and (name.startswith("func_") or name.startswith("D_")):
continue
print(f"{name} = 0x{offset:08X}; // allow_duplicated:True", file=file)

Expand Down

0 comments on commit e355243

Please sign in to comment.