summaryrefslogtreecommitdiff
path: root/core/cortex-m/ec.lds.S
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m/ec.lds.S')
-rw-r--r--core/cortex-m/ec.lds.S8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index 84071097ca..77db031076 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -79,7 +79,7 @@ SECTIONS
#endif
STRINGIFY(OUTDIR/core/CORE/init.o) (.text.vecttable)
. = ALIGN(4);
- __version_struct_offset = .;
+ __image_data_offset = .;
KEEP(*(.rodata.ver))
. = ALIGN(4);
@@ -353,6 +353,12 @@ SECTIONS
) >= (LOADADDR(.data) + SIZEOF(.data) - FW_OFF(SECTION)),
"No room left in the flash")
+#if defined(SECTION_IS_RO) && defined(NPCX_RO_HEADER)
+ __image_size = __hey_flash_used - FW_SIZE(RO_HDR);
+#else
+ __image_size = __hey_flash_used;
+#endif
+
#ifdef CONFIG_USB_RAM_SIZE
.usb_ram (NOLOAD) : {
__usb_ram_start = .;