Skip to content

Commit 11f311d

Browse files
lyakhlgirdwood
authored andcommitted
rimage: llext: fix overlapping section detection
Detached sections are allowed to overlap, their addresses won't be used at run-time. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 6522c55 commit 11f311d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/rimage/src/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ static int module_check_overlap(const struct module *mod, const struct module *m
500500
const struct module_section *section2 = &mod2->sections[j];
501501

502502
/* don't compare section with itself */
503-
if (section == section2)
503+
if (section == section2 || section->detached || section2->detached)
504504
continue;
505505

506506
/* check section overlapping */

0 commit comments

Comments
 (0)