Skip to content

Link-time constants in relocs.txt#52

Merged
AetiasHax merged 7 commits into
mainfrom
link-time-const-reloc
Mar 6, 2026
Merged

Link-time constants in relocs.txt#52
AetiasHax merged 7 commits into
mainfrom
link-time-const-reloc

Conversation

@AetiasHax
Copy link
Copy Markdown
Owner

Renamed linker variables to link-time constants. They're not really variables, they're as constant as a const in C/C++, so that's why I renamed them :P

Other than that, this PR mainly adds support for using link-time constants in relocs.txt.
Example usage: kind:link_time_const(__DTCM_LO)

The to and module attributes are optional for link-time constants. They also have no effect on such relocations and will be removed by dsd format. The same is now also true for the module attribute for overlay ID relocations.

@AetiasHax AetiasHax merged commit 7c7c7a9 into main Mar 6, 2026
7 checks passed
@AetiasHax AetiasHax deleted the link-time-const-reloc branch March 6, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant