
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.
7 lines
142 B
C
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);
|