PIE binaries & fix currupted framebuffer

This commit is contained in:
2025-09-26 20:24:23 -06:00
parent 07b4905a06
commit 180d9e82d2
11 changed files with 223 additions and 131 deletions

View File

@@ -1,19 +1,10 @@
MEMORY
{
/* Must match the USERAPP region in the kernel linker script */
RAM : ORIGIN = 0x20010000, LENGTH = 192K
RAM : ORIGIN = 0x0, LENGTH = 100K
}
SECTIONS
{
/* Reserve first 1KB for patchable symbols */
.user_reloc (NOLOAD) : ALIGN(4)
{
__user_reloc_start = .;
KEEP(*(.user_reloc*));
__user_reloc_end = .;
} > RAM
.text : ALIGN(4)
{
*(.text .text.*);
@@ -30,4 +21,11 @@ SECTIONS
*(.bss .bss.*);
*(COMMON);
} > RAM
.syscall_table (NOLOAD) : ALIGN(4)
{
__user_reloc_start = .;
KEEP(*(.user_reloc*));
__user_reloc_end = .;
} > RAM
}