This is an alternative to #53; see that PR for context.
@ccelio @ss2783 this is a sketch of my idea. Some comments:
To use this, just override the is_address_preloaded method, perhaps just to return true;.
I think it works as-is, but please try it out before approving the PR.
I only override write because I know that's all load_elf calls, but it would still be correct if it called something else.
If an ELF section spans a region that is partially preloaded but partially not, this implementation will conservatively write the whole thing. I doubt this will manifest in practice.
This is an alternative to #53; see that PR for context.
@ccelio @ss2783 this is a sketch of my idea. Some comments:
is_address_preloaded
method, perhaps just toreturn true;
.write
because I know that's allload_elf
calls, but it would still be correct if it called something else.