fixed bootloader issues

This commit is contained in:
Mateusz Faderewski 2023-12-08 22:01:25 +01:00
parent 3050dfa116
commit 29ba0c6c7f

View File

@ -1,7 +1,5 @@
MEMORY { MEMORY {
exception (rx) : org = 0x80000000, len = 0x400 ram (rwx) : org = 0x80000000, len = 2M
ram (rwx) : org = 0x80000400, len = 1M
framebuffer (rw) : org = 0x8016A000, len = 600k
} }
ENTRY(entry_handler) ENTRY(entry_handler)
@ -10,11 +8,8 @@ __exception_stack_size = 8k;
__stack_size = 16k; __stack_size = 16k;
SECTIONS { SECTIONS {
.exception : {
KEEP(*(.text.exception_vector));
} > exception
.text : SUBALIGN(8) { .text : SUBALIGN(8) {
KEEP(*(.text.exception_vector));
*(.text.entry_handler) *(.text.entry_handler)
*(.text .text.* .gnu.linkonce.t.*) *(.text .text.* .gnu.linkonce.t.*)
*(.assets .assets.*) *(.assets .assets.*)
@ -32,6 +27,8 @@ SECTIONS {
*(.scommon .scommon.*) *(.scommon .scommon.*)
*(.bss .bss.* .gnu.linkonce.b.*) *(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON) *(COMMON)
. = ALIGN(64);
*(.framebuffer)
. = ALIGN(8); . = ALIGN(8);
} > ram } > ram
@ -45,10 +42,6 @@ SECTIONS {
. += __stack_size; . += __stack_size;
_sp = .; _sp = .;
.framebuffer (NOLOAD) : SUBALIGN(64) {
*(.framebuffer .framebuffer.*)
} > framebuffer
/DISCARD/ : { /DISCARD/ : {
*(.MIPS.*) *(.MIPS.*)
} }