[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:33 PDT 2024


================
@@ -670,6 +670,13 @@ static Error handleArgs(const CommonConfig &Config, const ELFConfig &ELFConfig,
     }
   }
 
+  if (Config.ChangeSectionLMAValAll != 0) {
+    for (auto &Seg : Obj.segments()) {
----------------
jh7370 wrote:

As a general rule, `auto` should only be used where the type is obvious from the RHS of the statement (e.g. in casts), or for iterator types (see the coding standards).

https://github.com/llvm/llvm-project/pull/95431


More information about the llvm-commits mailing list