I have a program. I want it to be able to display a specific memory area on different runs.
- I have the source code for the program. C / C ++
- I control how the program is compiled. NCA
- I control how the program is connected. NCA
- I control how the program runs (Linux).
I just want to have this specific memory region, say 0xabcdabcd in 0xdeadbeef, which I mmap for a specific file. Is there any way to guarantee this? (I have to somehow make sure that other things are not loaded in this particular region).
EDIT:
How can I make sure nothing else occupies this particular region in my memory?
source share