mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Add printing the LC_ENCRYPTION_INFO load command with llvm-objdump’s -private-headers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224390 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -364,6 +364,8 @@ public:
|
||||
getSourceVersionCommand(const LoadCommandInfo &L) const;
|
||||
MachO::entry_point_command
|
||||
getEntryPointCommand(const LoadCommandInfo &L) const;
|
||||
MachO::encryption_info_command
|
||||
getEncryptionInfoCommand(const LoadCommandInfo &L) const;
|
||||
|
||||
MachO::any_relocation_info getRelocation(DataRefImpl Rel) const;
|
||||
MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
|
||||
|
||||
@@ -1128,6 +1128,14 @@ namespace llvm {
|
||||
sys::swapByteOrder(e.stacksize);
|
||||
}
|
||||
|
||||
inline void swapStruct(encryption_info_command &e) {
|
||||
sys::swapByteOrder(e.cmd);
|
||||
sys::swapByteOrder(e.cmdsize);
|
||||
sys::swapByteOrder(e.cryptoff);
|
||||
sys::swapByteOrder(e.cryptsize);
|
||||
sys::swapByteOrder(e.cryptid);
|
||||
}
|
||||
|
||||
inline void swapStruct(dysymtab_command &dst) {
|
||||
sys::swapByteOrder(dst.cmd);
|
||||
sys::swapByteOrder(dst.cmdsize);
|
||||
|
||||
Reference in New Issue
Block a user