[llvm] [llvm-objcopy] Add change-section-lma *+/-offset (PR #95431)
Eleanor Bonnici via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 08:51:19 PDT 2024
================
@@ -670,6 +670,13 @@ static Error handleArgs(const CommonConfig &Config, const ELFConfig &ELFConfig,
}
}
+ if (Config.ChangeSectionLMAValAll != 0) {
+ for (auto &Seg : Obj.segments()) {
+ if (Seg.FileSize > 0)
----------------
eleanor-arm wrote:
The updated commit message explains GNU behaviour better. This seems closest to what GNU objcopy does when it works. Overall the GNU behaviour is too erratic to extract from it what the tool is designed to do.
https://github.com/llvm/llvm-project/pull/95431
More information about the llvm-commits
mailing list