summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/mips/ingenic_x1000/app.lds5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/app.lds b/firmware/target/mips/ingenic_x1000/app.lds
index fe06e1cd8d..a1e84fb9cf 100644
--- a/firmware/target/mips/ingenic_x1000/app.lds
+++ b/firmware/target/mips/ingenic_x1000/app.lds
@@ -153,3 +153,8 @@ SECTIONS
153 *(.rel.dyn); 153 *(.rel.dyn);
154 } 154 }
155} 155}
156
157#if defined(HAVE_NOCROSSREFS_TO) && defined(HAVE_INIT_ATTR)
158/* Prevent accidental references to the .init section from other sections */
159NOCROSSREFS_TO(.init .text .iram .tcsm);
160#endif