tools: mkimage: detect overlapping load regions in FIT configurations
authorAristo Chen <jj251510319013@gmail.com>
Sun, 14 Sep 2025 10:59:30 +0000 (10:59 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 23 Sep 2025 19:35:22 +0000 (13:35 -0600)
commit588094f2c8ec9a4f7d2dcda11ffae8db8462149c
tree083b7e3c1e1e1ff89f87ae5f029ad4b75767ad8e
parentcbc4da1dce3f8dd828a2e613676fdceefd87e1ea
tools: mkimage: detect overlapping load regions in FIT configurations

This patch adds a validation step in mkimage to detect memory region
overlaps between images specified in the same configuration of a
FIT image. If any overlaps are found, the tool prints an error and
aborts the build.

This helps prevent runtime memory corruption caused by conflicting
load addresses between images.

Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
tools/fit_image.c
tools/mkimage.c