[PATCH] D67689: [llvm-objcopy] Add support for --gap-fill and --pad-to options

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 11 01:16:21 PST 2021


jhenderson added a comment.

Just a related note that D112116 <https://reviews.llvm.org/D112116> is adding support for --update-section. This is related to --gap-fill and --pad-to, should anybody ever pick back up the work to implement either of these options:

- For --gap-fill, it should overwrite the gap left behind should the updated section be shrunk.
- The current implementation of --update-section won't allow increasing a section in segment's size. However, technically, it's possible to increase the size of the last section (see also the --pad-to option). It may be possible to leverage the code used for --pad-to to support the limitation of --update-section too.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67689/new/

https://reviews.llvm.org/D67689



More information about the llvm-commits mailing list