summaryrefslogtreecommitdiff
path: root/core/cortex-m0/ec.lds.S
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m0/ec.lds.S')
-rw-r--r--core/cortex-m0/ec.lds.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/cortex-m0/ec.lds.S b/core/cortex-m0/ec.lds.S
index 77f3f9c8a7..6839b37778 100644
--- a/core/cortex-m0/ec.lds.S
+++ b/core/cortex-m0/ec.lds.S
@@ -203,6 +203,19 @@ SECTIONS
. = ALIGN(4);
*(.rodata*)
+#ifdef CONFIG_CHIP_INIT_ROM_REGION
+ ASSERT(0, "CONFIG_CHIP_INIT_ROM_REGION not supported by linker script")
+#endif /* CONFIG_CHIP_INIT_ROM_REGION */
+ /*
+ * This linker file does not yet support a separate ROM resident
+ * section. Ensure the corresponding data objects are linked
+ * into the .rodata section.
+ */
+ . = ALIGN(4);
+ __init_rom_start = .;
+ *(.init.rom)
+ __init_rom_end = .;
+
#if defined(SECTION_IS_RO) && defined(CONFIG_FLASH)
. = ALIGN(64);
KEEP(*(.google))