Kernel: Map .rodata as read only instead of read-write

This commit is contained in:
2024-08-12 14:28:52 +03:00
parent 1bd7b86e60
commit f37e1c2229
4 changed files with 28 additions and 2 deletions

View File

@@ -34,12 +34,14 @@ SECTIONS
}
.data ALIGN(4K) : AT(ADDR(.data) - KERNEL_OFFSET)
{
g_kernel_writable_start = .;
*(.data)
}
.bss ALIGN(4K) : AT(ADDR(.bss) - KERNEL_OFFSET)
{
*(COMMON)
*(.bss)
g_kernel_writable_end = .;
}
g_kernel_end = .;
}