In the current implementation, the LLEXT linker will only apply relocations targeting a given symbol if it has a specfic symbol type. This is overzealous and causes issues on some platforms, as some symbols that need to be relocated are skipped due to being of a "bad" type. Ignore the symbol type when performing relocation to solve this problem, but also add checks to ensure we don't attempt to relocate symbols with an invalid section index. If such a relocation is found, return an error instead of ignoring the relocation entry to ensure that it is impossible to execute code from a (partially) unrelocated LLEXT. Also remove all hacks added to circumvent this issue: * qemu_cortex_r5 exclusion from test cases * unnecessary exclusion of some flags when building with LLEXT EDK Fixes #72832. Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com> |
||
|---|---|---|
| .. | ||
| edk | ||
| shell_loader | ||
| llext.rst | ||