[llvm] [llvm-objcopy] Add --change-section-address (PR #98664)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 02:14:27 PDT 2024


================
@@ -191,6 +152,61 @@ struct NewSectionInfo {
   std::shared_ptr<MemoryBuffer> SectionData;
 };
 
+// Flags set by --set-section-flags or --rename-section. Interpretation of these
----------------
jh7370 wrote:

I think if you put `SectionFlags`,  `SectionRename`, `SectionFlagsUpdate`, and `DiscardType` above `MatchStyle`, you'll reduce the size of the diff to just the new classes of `SectionPatternAddressUpdate`, `AdjustKind`, and `AddressUpdate`, and it'll also keep the `NameMatcher` immediately above those new classes, where it is used for the first time.

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


More information about the llvm-commits mailing list