TuxSH ffbd8554d5 loader: implement PASLR (disabled by default)
Faithfully implement the PASLR algorithm official Loader
uses (it's not very good). Physical address space layout
randomization means that the layout of the pages in physical
memory are randomized, but doens't randomize the virtual addresses.

Also refactor some parts of our Loader impl a little more.
2022-12-29 00:23:45 +01:00

7 lines
142 B
C

#pragma once
#include <3ds/types.h>
#include <3ds/exheader.h>
Result allocateProgramMemory(const ExHeader_Info *exhi, u32 vaddr, u32 size);