Skip to content

Commit

Permalink
MH_DYLINKER
Browse files Browse the repository at this point in the history
  • Loading branch information
xerub committed Oct 9, 2019
1 parent 75a53c4 commit 11f7ebc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file modified ldid
Binary file not shown.
2 changes: 2 additions & 0 deletions ldid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ struct mach_header {
#define MH_OBJECT 0x1
#define MH_EXECUTE 0x2
#define MH_DYLIB 0x6
#define MH_DYLINKER 0x7
#define MH_BUNDLE 0x8
#define MH_DYLIB_STUB 0x9

Expand Down Expand Up @@ -449,6 +450,7 @@ class MachHeader :
load_command_ = (struct load_command *) post;

_assert(
Swap(mach_header_->filetype) == MH_DYLINKER ||
Swap(mach_header_->filetype) == MH_EXECUTE ||
Swap(mach_header_->filetype) == MH_DYLIB ||
Swap(mach_header_->filetype) == MH_BUNDLE
Expand Down
Binary file modified ldid2
Binary file not shown.
2 changes: 2 additions & 0 deletions ldid2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ struct mach_header {
#define MH_OBJECT 0x1
#define MH_EXECUTE 0x2
#define MH_DYLIB 0x6
#define MH_DYLINKER 0x7
#define MH_BUNDLE 0x8
#define MH_DYLIB_STUB 0x9

Expand Down Expand Up @@ -449,6 +450,7 @@ class MachHeader :
load_command_ = (struct load_command *) post;

_assert(
Swap(mach_header_->filetype) == MH_DYLINKER ||
Swap(mach_header_->filetype) == MH_EXECUTE ||
Swap(mach_header_->filetype) == MH_DYLIB ||
Swap(mach_header_->filetype) == MH_BUNDLE
Expand Down

0 comments on commit 11f7ebc

Please sign in to comment.