Skip to content

Conversation

@midnightveil
Copy link

Opening this just to recognise that it's here, I'm unlikely to work on this soon.

This adds support for having loader regions that are zero-filled, where either the entire region is zeroed or the end part, as in for ELF files (we are really just reinventing an ELF file here).

At the moment, whilst the loader.rs and loader.c code works fine, making the changes to use this for the restof the tool breaks. This is essentially because we used to be able to patch symbols that were located in the .bss region as we stored the zero-filled data, now, we cannot. See the changes for .data.patched in libmicrokit for an example of how this affects people.

The same thing will happen for most user programs, I think. So this might break things.

However, if we removed the changes to use it for ELF files, we can remove the hardcoding for the heap zero-initialised region (though this is being removed anyway).

@midnightveil midnightveil changed the title Julia/zero filled loader segments zero filled loader segments Nov 18, 2025
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