From 63848e016230511ad5e553476425fa122b2095a7 Mon Sep 17 00:00:00 2001 From: Dino Li Date: Wed, 27 Mar 2024 14:14:42 +0800 Subject: [PATCH] it8xxx2/linker: correct __ilm_ram_end correct __ilm_ram_end Signed-off-by: Dino Li Signed-off-by: Ruibin Chang --- soc/ite/ec/it8xxx2/linker.ld | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soc/ite/ec/it8xxx2/linker.ld b/soc/ite/ec/it8xxx2/linker.ld index 5c13ee2ecce..255c4144e11 100644 --- a/soc/ite/ec/it8xxx2/linker.ld +++ b/soc/ite/ec/it8xxx2/linker.ld @@ -256,8 +256,10 @@ SECTIONS ASSERT(((ABSOLUTE(__sha256_ram_block_start) & 0xfff) == \ (ABSOLUTE(__sha256_pad_block_start) & 0xfff)), \ "sha256 ram block needs the same offset with sha256 rom block"); +#else + __sha256_ram_block_size = 0; #endif - . += __ilm_flash_end - __ilm_flash_start; + . += __ilm_flash_end - __ilm_flash_start - __sha256_ram_block_size; __ilm_ram_end = .; } GROUP_LINK_IN(RAMABLE_REGION)