diff --git a/src/bootimage.cpp b/src/bootimage.cpp index 28f45dd382..3d75f4401c 100644 --- a/src/bootimage.cpp +++ b/src/bootimage.cpp @@ -435,6 +435,10 @@ makeCodeImage(Thread* t, Zone* zone, BootImage* image, uint8_t* code, memberFields[memberIndex] = *f; + while (targetMemberOffset % f->targetSize) { + ++ targetMemberOffset; + } + targetMemberOffset += f->targetSize; ++ memberIndex;