[PATCH] D67689: [llvm-objcopy] Add support for --gap-fill and --pad-to options
Jake Ehrlich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 14:51:37 PDT 2019
jakehehrlich added a comment.
--gap-fill should likely overwrite all interstitial data which includes data at the end of loadable segments not just the data between sections that we previously preserved. I view the --gap-fill use case as being a use case for things like lld's trap filling. Yes this violates the strict interpretation of "don't overwrite segment contents" but its ok in this case I think. Making binaries more secure is a good thing!
--pad-to is more tricky and requires altering the segment size which I'm not so fond of. We have to ensure that sections never fall outside of a segment or overlap another section when this happens.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67689/new/
https://reviews.llvm.org/D67689
More information about the llvm-commits
mailing list