binman: Allow zero-length entries to overlap
authorSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:39:42 +0000 (18:39 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 20 Jul 2020 17:37:47 +0000 (11:37 -0600)
commit8200d8871a6a87834e26e38ca5cd475f86733dfd
tree259acbcdc2fd311cd5213fcddceea8d59a595e4f
parent2f5c3a4d1d1f57cc7d3bcb9a6b1a509d399cade1
binman: Allow zero-length entries to overlap

Some binary blobs unfortunately obtain their position in the image from
other binary blobs, such as Intel's 'descriptor'. In this case we cannot
rely on packing to work. It is not possible to produce a valid image in
any case, due to the missing blobs.

Allow zero-length overlaps so that this does not cause any problems.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
tools/binman/etype/section.py
tools/binman/ftest.py
tools/binman/test/160_pack_overlap_zero.dts [new file with mode: 0644]