diff options
-rw-r--r-- | core/cortex-m/ec.lds.S | 11 | ||||
-rw-r--r-- | core/cortex-m0/ec.lds.S | 11 | ||||
-rw-r--r-- | core/nds32/ec.lds.S | 11 | ||||
-rw-r--r-- | core/riscv-rv32i/ec.lds.S | 11 |
4 files changed, 44 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index 4b6bd04a48..27d71946e5 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -422,6 +422,17 @@ SECTIONS */ __hey_flash_used = LOADADDR(.data) + SIZEOF(.data) - FW_OFF(SECTION); +#ifdef CONFIG_FLASH + /* + * These linker labels are just for analysis and not used in the code. + */ + __config_flash_size = CONFIG_FLASH_SIZE; + __config_ro_size = CONFIG_RO_SIZE; + __config_ec_protected_storage_size = CONFIG_EC_PROTECTED_STORAGE_SIZE; + __config_rw_size = CONFIG_RW_SIZE; + __config_ec_writable_storage_size = CONFIG_EC_WRITABLE_STORAGE_SIZE; +#endif + #ifdef CONFIG_FLASH_PHYSICAL ASSERT((FW_SIZE(SECTION) #if defined(CONFIG_RWSIG) && defined(SECTION_IS_RO) diff --git a/core/cortex-m0/ec.lds.S b/core/cortex-m0/ec.lds.S index ca2984bd0f..bfcbaecc18 100644 --- a/core/cortex-m0/ec.lds.S +++ b/core/cortex-m0/ec.lds.S @@ -300,6 +300,17 @@ SECTIONS */ __hey_flash_used = LOADADDR(.data) + SIZEOF(.data) - FW_OFF(SECTION); +#ifdef CONFIG_FLASH + /* + * These linker labels are just for analysis and not used in the code. + */ + __config_flash_size = CONFIG_FLASH_SIZE; + __config_ro_size = CONFIG_RO_SIZE; + __config_ec_protected_storage_size = CONFIG_EC_PROTECTED_STORAGE_SIZE; + __config_rw_size = CONFIG_RW_SIZE; + __config_ec_writable_storage_size = CONFIG_EC_WRITABLE_STORAGE_SIZE; +#endif + ASSERT((FW_SIZE(SECTION) #if defined(CONFIG_RWSIG) && defined(SECTION_IS_RO) - CONFIG_RO_PUBKEY_SIZE diff --git a/core/nds32/ec.lds.S b/core/nds32/ec.lds.S index 2ffb58d932..2dad18c28a 100644 --- a/core/nds32/ec.lds.S +++ b/core/nds32/ec.lds.S @@ -261,6 +261,17 @@ SECTIONS __image_size = LOADADDR(.data) + SIZEOF(.data) - FW_OFF(SECTION); +#ifdef CONFIG_FLASH + /* + * These linker labels are just for analysis and not used in the code. + */ + __config_flash_size = CONFIG_FLASH_SIZE; + __config_ro_size = CONFIG_RO_SIZE; + __config_ec_protected_storage_size = CONFIG_EC_PROTECTED_STORAGE_SIZE; + __config_rw_size = CONFIG_RW_SIZE; + __config_ec_writable_storage_size = CONFIG_EC_WRITABLE_STORAGE_SIZE; +#endif + #if defined(CONFIG_HOSTCMD_X86) || defined(CONFIG_I2C_SLAVE) .h2ram (NOLOAD) : { . += CONFIG_H2RAM_HOST_LPC_IO_BASE; diff --git a/core/riscv-rv32i/ec.lds.S b/core/riscv-rv32i/ec.lds.S index 20ac8e0ab8..6efbe49f1f 100644 --- a/core/riscv-rv32i/ec.lds.S +++ b/core/riscv-rv32i/ec.lds.S @@ -310,6 +310,17 @@ SECTIONS __image_size = LOADADDR(.data) + SIZEOF(.data) - FW_OFF(SECTION); #endif +#ifdef CONFIG_FLASH + /* + * These linker labels are just for analysis and not used in the code. + */ + __config_flash_size = CONFIG_FLASH_SIZE; + __config_ro_size = CONFIG_RO_SIZE; + __config_ec_protected_storage_size = CONFIG_EC_PROTECTED_STORAGE_SIZE; + __config_rw_size = CONFIG_RW_SIZE; + __config_ec_writable_storage_size = CONFIG_EC_WRITABLE_STORAGE_SIZE; +#endif + #if defined(CHIP_FAMILY_IT8XXX2) #if defined(CONFIG_HOSTCMD_X86) || defined(CONFIG_I2C_SLAVE) .h2ram (NOLOAD) : { |