mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 17:56:06 +00:00

… 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