You've already forked Starlight-SMO-Example
mirror of
https://github.com/CraftyBoss/Starlight-SMO-Example.git
synced 2026-04-01 08:53:17 -07:00
Fix issue in linker script generation with SDK imported symbols.
This commit is contained in:
@@ -63,7 +63,10 @@ with open("syms.ld", "w") as linker:
|
||||
if not isValid:
|
||||
continue
|
||||
|
||||
#print(symbolName)
|
||||
# sdk functions have a _0 at the end because they are duplicated due to the originals being imported
|
||||
# so IDA adds a _0 at the end...we need to stript this
|
||||
if "_ZN2nn" in symbolName:
|
||||
symbolName = symbolName.strip("_0")
|
||||
|
||||
linker.write(f"{symbolName} = {address} - {sys.argv[2]};\n")
|
||||
|
||||
|
||||
+9911
-9911
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user