This diff adds support for copying binaries containing a LC_CODE_SIGNATURE load command .
Test plan: make check-all
Paths
| Differential D81768
[llvm-objcopy][MachO] Add support for LC_CODE_SIGNATURE ClosedPublic Authored by alexander-shaposhnikov on Jun 12 2020, 2:36 PM.
Details Summary This diff adds support for copying binaries containing a LC_CODE_SIGNATURE load command . Test plan: make check-all
Diff Detail
Event TimelineComment Actions Not sure if this will also fix: "llvm-objcopy: error: unsupported load command (cmd=0x1d)" error. https://bugs.llvm.org/show_bug.cgi?id=46306 Comment Actions @hiraditya , if I'm not mistaken, yes, it will. https://github.com/llvm-mirror/llvm/blob/master/include/llvm/BinaryFormat/MachO.def#L53 Comment Actions Thanks a lot for fixing this, this was blocking me earlier yesterday and @smeenai asked me to reach out to you.
Comment Actions Looks reasonable on the surface, but I don't have the Mach-O knowledge to confirm it, so best get someone else to give the LGTM.
Comment Actions LGTM from the Mach-O side.
This revision is now accepted and ready to land.Jun 15 2020, 5:27 PM alexander-shaposhnikov added inline comments.
Closed by commit rG913bc312b551: [llvm-objcopy][MachO] Add support for LC_CODE_SIGNATURE (authored by alexander-shaposhnikov). · Explain WhyJun 15 2020, 7:51 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 270523 llvm/test/tools/llvm-objcopy/MachO/code_signature_lc.test
llvm/tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp
llvm/tools/llvm-objcopy/MachO/MachOReader.h
llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
llvm/tools/llvm-objcopy/MachO/MachOWriter.h
llvm/tools/llvm-objcopy/MachO/MachOWriter.cpp
llvm/tools/llvm-objcopy/MachO/Object.h
|
Does this test need CHECK lines?