Match autoload callback in ROM header

This commit is contained in:
Aetias
2023-10-21 12:54:05 +02:00
parent d2f2636774
commit 08220bd2a4
8 changed files with 70 additions and 24 deletions
+5
View File
@@ -225,6 +225,7 @@ with open(f'{BUILD}arm9_linker_script.lcf', 'w') as file:
file.write(' DTCM : ORIGIN = 0x27e0000 >> arm9.bin\n')
file.write(' AUTOLOADS : ORIGIN = 0 >> arm9.bin\n')
file.write(' FOOTER : ORIGIN = 0 > arm9_footer.bin\n')
file.write(' METADATA : ORIGIN = 0 > arm9_metadata.bin\n')
file.write('\n')
file.write(' OV_TABLE : ORIGIN = 0 > arm9_ovt.bin\n')
file.write('\n')
@@ -279,6 +280,10 @@ with open(f'{BUILD}arm9_linker_script.lcf', 'w') as file:
file.write(' WRITEW 0;\n')
file.write(' } > FOOTER\n')
file.write('\n')
file.write(' .metadata : {\n')
file.write(' WRITEW AutoloadDoneCallback;\n')
file.write(' } > METADATA\n')
file.write('\n')
for ov in OVERLAYS:
file.write(f' .{ov.name} : ' + '{\n')
file.write(f' {ov.name}_start = .;\n')