diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-30 23:18:08 +0000 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-05-08 22:14:10 -0400 |
commit | e37cd0f2f59d04b7e18bc4a425c367f92523b1cd (patch) | |
tree | fd7e19a0a59dcd365c587f5c30c0e00b37f0819b | |
parent | 1957237a4698b055fd023bad3c047baa9571a4e4 (diff) | |
download | rockbox-e37cd0f2f5.tar.gz rockbox-e37cd0f2f5.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.lds | 5 |
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 *(.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 |