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 *(.rel.dyn); } } + +#if defined(HAVE_NOCROSSREFS_TO) && defined(HAVE_INIT_ATTR) +/* Prevent accidental references to the .init section from other sections */ +NOCROSSREFS_TO(.init .text .iram .tcsm); +#endif