summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-12-30 23:18:08 +0000
committerSolomon Peachy <pizza@shaftnet.org>2024-05-08 22:14:10 -0400
commite37cd0f2f59d04b7e18bc4a425c367f92523b1cd (patch)
treefd7e19a0a59dcd365c587f5c30c0e00b37f0819b
parent1957237a4698b055fd023bad3c047baa9571a4e4 (diff)
downloadrockbox-e37cd0f2f59d04b7e18bc4a425c367f92523b1cd.tar.gz
rockbox-e37cd0f2f59d04b7e18bc4a425c367f92523b1cd.zip
x1000: Enable NOCROSSREFS_TO()
Start enforcing the correctness of references to the .init section. Change-Id: I507891a25be9cccff4cf8ec13fdc799b73c75176
-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