From dacb728d129ecf1176defae49dc5dcd2bf26fe4d Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 20 Apr 2024 09:01:04 +0200 Subject: [PATCH] Load the CustomRPXLoader into the start of the memory region, don't limit the size --- src/link.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/link.ld b/src/link.ld index 4fca7c4..b136163 100644 --- a/src/link.ld +++ b/src/link.ld @@ -3,7 +3,7 @@ OUTPUT(payload.elf); ENTRY(_start); SECTIONS { - . = 0x00808000; + . = 0x00800000; .text : { *(.kernel_code*); /* everything below this code may get overwritten at runtime */ @@ -24,4 +24,4 @@ SECTIONS { } } -ASSERT((SIZEOF(.text) + SIZEOF(.data)) < (0x00900000 - 0x00808000), "elf is too big"); +ASSERT((SIZEOF(.text) + SIZEOF(.data)) < (0x00FD0000 - 0x00800000), "elf is too big"); \ No newline at end of file