1
0
Fork 0
forked from len0rd/rockbox

x1000: Enable NOCROSSREFS_TO()

Start enforcing the correctness of references to the .init section.

Change-Id: I507891a25be9cccff4cf8ec13fdc799b73c75176
This commit is contained in:
Aidan MacDonald 2022-12-30 23:18:08 +00:00 committed by Solomon Peachy
parent 1957237a46
commit e37cd0f2f5

View file

@ -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