Skip to content

Commit

Permalink
rimage: llext: fix overlapping section detection
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lyakh committed Dec 16, 2024
1 parent 76df03b commit a42c097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rimage/src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ static int module_check_overlap(const struct module *mod, const struct module *m
const struct module_section *section2 = &mod2->sections[j];

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

/* check section overlapping */
Expand Down

0 comments on commit a42c097

Please sign in to comment.