mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Finished BSS sections (for now) and cleaning undefined_syms.txt
This commit is contained in:
@@ -26,6 +26,13 @@ LATE_DATA_FILES = [
|
||||
BUILD_DIR + '/lib/src/unknown_0D3020.o'
|
||||
]
|
||||
|
||||
BSS_LIB_ORDER_FILES = [
|
||||
BUILD_DIR + '/lib/src/osViMgr.o',
|
||||
BUILD_DIR + '/lib/src/osSetEventMesg.o',
|
||||
BUILD_DIR + '/lib/src/unknown_0CD820.o',
|
||||
BUILD_DIR + '/lib/src/unknown_0CE200.o'
|
||||
]
|
||||
|
||||
class GenerateLD:
|
||||
def __init__(self, file):
|
||||
print('Generating linker file...')
|
||||
@@ -53,6 +60,8 @@ class GenerateLD:
|
||||
self.gen_ucode_data_section()
|
||||
self.gen_bss_section()
|
||||
self.gen_assets_section()
|
||||
self.gen_line('__ROM_END = romPos;')
|
||||
self.gen_newline()
|
||||
self.gen_discard()
|
||||
self.gen_close_block()
|
||||
|
||||
@@ -130,9 +139,9 @@ class GenerateLD:
|
||||
self.gen_line('.bss.noload . (NOLOAD): SUBALIGN(4)')
|
||||
self.gen_open_block()
|
||||
for file in self.files:
|
||||
if file[0] not in LATE_DATA_FILES:
|
||||
if file[0] not in BSS_LIB_ORDER_FILES:
|
||||
self.gen_line(file[0] + '(.bss);')
|
||||
for file in LATE_DATA_FILES:
|
||||
for file in BSS_LIB_ORDER_FILES:
|
||||
self.gen_line(file + '(.bss);')
|
||||
self.gen_close_block()
|
||||
self.gen_newline()
|
||||
|
||||
Reference in New Issue
Block a user