From 03e6dc473b48d29b73cf92464083debf056f3bec Mon Sep 17 00:00:00 2001 From: Miguel Silva Date: Fri, 29 Nov 2024 15:13:30 +0000 Subject: [PATCH] fix(linker): Move _image_noload_start to before bss section Having this symbol right before the bss section (firs noload section) allows easier calculations in the c code. Signed-off-by: Miguel Silva --- src/linker.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linker.ld b/src/linker.ld index 80d3fff3..d8af229d 100644 --- a/src/linker.ld +++ b/src/linker.ld @@ -59,8 +59,7 @@ SECTIONS KEEP(*(.vm_image*)) } . = ALIGN(PAGE_SIZE); - _vm_image_end = .; - _image_noload_start = .; + _vm_image_end = .; extra_allocated_phys_mem = _image_noload_start - _image_load_end; #ifdef MEM_PROT_MMU @@ -73,6 +72,7 @@ SECTIONS #endif /* Only no load regions below */ + _image_noload_start = .; .bss (NOLOAD) : { _bss_start = .;