diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 6b608fc..de05d58 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -231,10 +231,14 @@ SECTIONS
. = ALIGN(CACHEALIGN_SIZE);
*(.ncdata*)
. = ALIGN(CACHEALIGN_SIZE);
+#if defined(IRAMSIZE)
+ iramcopy = . - NOCACHE_BASE;
+#endif
+
} AT> PLUGIN_RAM
#endif

-#if defined(IRAMSIZE)
+#if defined(IRAMSIZE) && !NOCACHE_BASE
iramcopy = . - NOCACHE_BASE;
#endif