[PATCH] D111164: Regenerate LC_CODE_SIGNATURE during llvm-objcopy operations
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 8 16:49:16 PDT 2021
alexander-shaposhnikov added a comment.
adding / removing load commands (e.g. rpath) can trigger such changes (but beware the alignment + the order of load commands matters) so the test needs to be specifically designed for these purposes
(I would use llvm-objdump or llvm-readobj to verify that the offset of __TEXT has changed etc)
P.S. btw - you probably want to update TextSegmentCommandIndex inside updateLoadCommandIndexes(..) and such a test would catch it, alternatively, it can be calculated where it's actually used (and the field can be dropped)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111164/new/
https://reviews.llvm.org/D111164
More information about the llvm-commits
mailing list