Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-objcopy][MachO] Copy LC_ENCRYPT_INFO/LC_ENCRYPT_INFO_64 load co…
…mmands Copy LC_ENCRYPT_INFO/LC_ENCRYPT_INFO_64 load commands. Test plan: make check-all Differential revision: https://reviews.llvm.org/D78339
- Loading branch information
Alexander Shaposhnikov
committed
Apr 20, 2020
1 parent
6e22a1e
commit d17d50e
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
llvm/test/tools/llvm-objcopy/MachO/encrypt_info_64_lc.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# RUN: yaml2obj %s -o %t | ||
# RUN: llvm-objcopy %t %t.copy | ||
# RUN: cmp %t %t.copy | ||
|
||
--- !mach-o | ||
FileHeader: | ||
magic: 0xFEEDFACF | ||
cputype: 0x0100000C | ||
cpusubtype: 0x00000000 | ||
filetype: 0x00000002 | ||
ncmds: 1 | ||
sizeofcmds: 24 | ||
flags: 0x00002000 | ||
reserved: 0x00000000 | ||
LoadCommands: | ||
- cmd: LC_ENCRYPTION_INFO_64 | ||
cmdsize: 24 | ||
cryptoff: 0 | ||
cryptsize: 0 | ||
cryptid: 0 | ||
pad: 0 | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# RUN: yaml2obj %s -o %t | ||
# RUN: llvm-objcopy %t %t.copy | ||
# RUN: cmp %t %t.copy | ||
|
||
--- !mach-o | ||
FileHeader: | ||
magic: 0xFEEDFACE | ||
cputype: 0x0000000C | ||
cpusubtype: 0x00000009 | ||
filetype: 0x00000001 | ||
ncmds: 1 | ||
sizeofcmds: 20 | ||
flags: 0x00002000 | ||
LoadCommands: | ||
- cmd: LC_ENCRYPTION_INFO | ||
cmdsize: 20 | ||
cryptoff: 0 | ||
cryptsize: 0 | ||
cryptid: 0 | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters