mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Cleared data/rodata addresses from undefined_syms. Now it is onto bss!
This commit is contained in:
@@ -51,6 +51,7 @@ class GenerateLD:
|
||||
self.gen_data_section()
|
||||
self.gen_rodata_section()
|
||||
self.gen_ucode_data_section()
|
||||
self.gen_bss_section()
|
||||
self.gen_assets_section()
|
||||
self.gen_discard()
|
||||
self.gen_close_block()
|
||||
@@ -115,6 +116,17 @@ class GenerateLD:
|
||||
self.gen_line('romPos += SIZEOF(.rodata);')
|
||||
self.gen_newline()
|
||||
|
||||
def gen_bss_section(self):
|
||||
self.gen_line('.bss.noload (NOLOAD):')
|
||||
self.gen_open_block()
|
||||
for file in self.files:
|
||||
if file[0] not in LATE_DATA_FILES:
|
||||
self.gen_line(file[0] + '(.bss);')
|
||||
for file in LATE_DATA_FILES:
|
||||
self.gen_line(file + '(.bss);')
|
||||
self.gen_close_block()
|
||||
self.gen_newline()
|
||||
|
||||
def gen_ucode_data_section(self):
|
||||
self.gen_line('.ucodeData . : AT(romPos)')
|
||||
self.gen_open_block()
|
||||
|
||||
Reference in New Issue
Block a user