forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llext: fix llext_load() optimization
The optimization in llext_load() to avoid using the generic path for sections that are cached in memory was broken for two reasons: - it was comparing an ELF section index to LLEXT_MEM_BSS, which is a llext_mem enum, and - it was using the wrong section address for the cached sections since the "merged sections" feature was introduced in 709b2e4. This patch fixes both issues using the new llext_loaded_sect_ptr() helper function. Signed-off-by: Luca Burelli <[email protected]>
- Loading branch information
Showing
3 changed files
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters