-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llext: compensate for pre-padding in aligned regions
Several operations in the LLEXT module were not taking into account the alignment padding now added to the start of each region, which could lead to incorrect results when referring to the memory regions. - The loading code would read the padding bytes from the ELF file as part of the section data, instead of zeroing them. - The overlap checks in the section mapping code need to ignore the padding to avoid false positives when checking for overlaps. - The inspect API did not adjust the returned region address, region size and section offsets to compensate for the padding, resulting in regions and sections larger than the actual specified memory area. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
- Loading branch information
Showing
3 changed files
with
31 additions
and
9 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