why openocd using padding between two split image sections

Hi: we want use high end address flash to stored some data, so create a custom elf section. it’ll create image two parts. one is text/data section, another is our custom section.

like below:

-------------- ← start of flash

text code


data



custom section

-------------- ← end of flash

why the openocd add padding data between these two image sections as one flash image? it waste time, what’s purpose?

Thanks for your help!