Skip to content

Assert that the runtime-ext version matches channel version - #105

Merged
Jacherr merged 1 commit into
Retro-Rewind-Team:mainfrom
y21:runtime-ext-version-check
Jul 29, 2026
Merged

Assert that the runtime-ext version matches channel version#105
Jacherr merged 1 commit into
Retro-Rewind-Team:mainfrom
y21:runtime-ext-version-check

Conversation

@y21

@y21 y21 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This moves the base structure and the internal version from the channel's version.h to shared/version.h, so that it can be included in both runtime-ext and the channel. runtime-ext stores it in a static with a fixed address that's then read and compared in the channel with its own version.

Then I've renamed version.h in the channel to versionutils.h since it doesn't contain the version struct itself anymore, just additional utils that the channel needs and ones that are not needed for runtime-ext.

I also removed the dummy reads in the _start function in runtime-ext which were meant to stop the linker from removing symbols that seem "unused", and replaced them with KEEP() in the linker script. IMO this is more obvious and less error-prone (compiler could technically be smart enough to realize the dummy pointer reads don't do anything).

@Jacherr
Jacherr merged commit d7bde0b into Retro-Rewind-Team:main Jul 29, 2026
1 check failed
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.

2 participants