1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[fun@kru /media/bordel/rockbox/apps]% git diff plugins/plugin.lds|cat
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 653b8ba..6e38f8a 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -255,13 +255,14 @@ SECTIONS
 #endif
     }

-#if defined(IRAMSIZE) && IRAMSIZE != 0
     .iram IRAMORIG : AT ( iramcopy)
     {
         iramstart = .;
+#if defined(IRAMSIZE) && IRAMSIZE != 0
         *(.icode)
         *(.irodata)
         *(.idata)
+#endif
         iramend = .;
     } > PLUGIN_IRAM

@@ -269,11 +270,12 @@ SECTIONS
     .ibss (NOLOAD) :
     {
         iedata = .;
+#if defined(IRAMSIZE) && IRAMSIZE != 0
         *(.ibss)
         . = ALIGN(0x4);
+#endif
         iend = .;
     } > PLUGIN_IRAM
-#endif

     .bss (NOLOAD) :
     {