Kernel: Support execute disable bit

We will now map executable memory explicitly as executable.
This commit is contained in:
Bananymous
2023-07-13 14:28:53 +03:00
parent 297e65f19a
commit 9ea2c1d932
4 changed files with 38 additions and 3 deletions

View File

@@ -9,12 +9,14 @@ SECTIONS
g_kernel_start = .;
.text ALIGN(4K) : AT(ADDR(.text) - KERNEL_OFFSET)
{
g_kernel_execute_start = .;
*(.multiboot)
*(.text)
}
.rodata ALIGN(4K) : AT(ADDR(.rodata) - KERNEL_OFFSET)
{
*(.rodata.*)
g_kernel_execute_end = .;
}
.data ALIGN(4K) : AT(ADDR(.data) - KERNEL_OFFSET)
{