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:
parent
1957237a46
commit
e37cd0f2f5
1 changed files with 5 additions and 0 deletions
|
@ -153,3 +153,8 @@ SECTIONS
|
||||||
*(.rel.dyn);
|
*(.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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue