Jonathon Penix ffecd72479
[llvm-objcopy] Let --change-section-lma change segments wth filesz=0,… (#127724)
… memsz>0

Currently, segments with a file size of 0 are ignored for the purposes
of --change-section-lma, regardless of their memory size. It seems
reasonable to me to modify such segments given that we're changing the
LMA for all sections and these LMAs may be used during loading. GNU
objcopy also seems to adjust such segments.

Additionally, segments with file size > 0 and memory size = 0 will no
longer be modified for the purposes of --change-section-lma as they
shouldn't be part of the loaded memory image.

Fixes #124680
2025-02-27 13:45:04 -08:00
..