diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/cortex-m/ec.lds.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index 2a9a9b2fe0..8bd5bfa21a 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -64,6 +64,10 @@ MEMORY #undef REGION #undef REGION_LOAD #endif /* CONFIG_MEMORY_REGIONS */ + +#ifdef CONFIG_DRAM_BASE + DRAM (rwx) : ORIGIN = CONFIG_DRAM_BASE, LENGTH = CONFIG_DRAM_SIZE +#endif } SECTIONS { @@ -422,6 +426,13 @@ SECTIONS #undef REGION_LOAD #endif /* CONFIG_CHIP_MEMORY_REGIONS */ +#ifdef CONFIG_DRAM_BASE + .dram : { + KEEP(*(SORT(.dram.keep.*))) + *(SORT(.dram.*)) + } > DRAM +#endif + #if !(defined(SECTION_IS_RO) && defined(CONFIG_FLASH)) /DISCARD/ : { *(.google) |