[llvm] [llvm-objcopy] Add change-section-lma *+/-offset (PR #95431)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 02:39:35 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)
----------------
jh7370 wrote:
Is this exception present in the GNU objcopy behaviour?
https://github.com/llvm/llvm-project/pull/95431
More information about the llvm-commits
mailing list