Comment by no_time
6 hours ago
>eXecute-in-place supported
Losing this when you load ELFs is kind of a bummer. Probably a dumb question but I wonder if it'd be possible to only swap in the parts of the binary that are needed at any given time.
6 hours ago
>eXecute-in-place supported
Losing this when you load ELFs is kind of a bummer. Probably a dumb question but I wonder if it'd be possible to only swap in the parts of the binary that are needed at any given time.
swap requires MMU, so no, unfortunately. But there are tricks to have XIP userspace: cramfs supports it, as well as a special AXFS file system.
cramfs parses ELF files and marks XIP only a .text/ro segments of it, not the whole file.
https://github.com/npitre/cramfs-tools/commit/2325ed2de8fd17...