diff options
Diffstat (limited to 'core/nds32/ec.lds.S')
-rw-r--r-- | core/nds32/ec.lds.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/nds32/ec.lds.S b/core/nds32/ec.lds.S index 4014aaaaaa..f5e2882222 100644 --- a/core/nds32/ec.lds.S +++ b/core/nds32/ec.lds.S @@ -253,9 +253,10 @@ SECTIONS #endif __h2ram_end = .; } > H2RAM -#endif + ASSERT((__h2ram_end) <= (CONFIG_H2RAM_BASE + CONFIG_H2RAM_SIZE), "Not enough space for h2ram section.") +#endif #if !(defined(SECTION_IS_RO) && defined(CONFIG_FLASH)) /DISCARD/ : { |