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.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index 85bc9ea5cb..c2c3ea12a3 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -345,7 +345,7 @@ SECTIONS
__init_rom_end = .;
#endif /* CONFIG_CHIP_INIT_ROM_REGION */
-#if defined(SECTION_IS_RO) && defined(CONFIG_FLASH)
+#if defined(SECTION_IS_RO) && defined(CONFIG_FLASH_CROS)
. = ALIGN(64);
KEEP(*(.google))
#endif
@@ -503,7 +503,7 @@ SECTIONS
__image_size = __flash_used;
#endif /* CONFIG_CHIP_INIT_ROM_REGION */
-#ifdef CONFIG_FLASH
+#ifdef CONFIG_FLASH_CROS
/*
* These linker labels are just for analysis and not used in the code.
*/
@@ -703,7 +703,7 @@ SECTIONS
} > DRAM
#endif
-#if !(defined(SECTION_IS_RO) && defined(CONFIG_FLASH))
+#if !(defined(SECTION_IS_RO) && defined(CONFIG_FLASH_CROS))
/DISCARD/ : { *(.google) }
#endif
/DISCARD/ : { *(.ARM.*) }