10000 add macho load command 'LC_LOAD_WEAK_DYLIB' support by profiles · Pull Request #1133 · qilingframework/qiling · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add macho load command 'LC_LOAD_WEAK_DYLIB' support #1133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/giteesync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
fetch-depth: 0
- uses: xwings/sync-repo-action@master
with:
run: git config --global --add safe.directory *
ssh_private_key: ${{ secrets.GITEE_KEY }}
target_repo: ssh://git@gitee.com/qilingframework/qiling.git

1 change: 1 addition & 0 deletions qiling/loader/macho_parser/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
LC_LOAD_DYLINKER = 0x0000000E
LC_MAIN = 0x80000028
LC_LOAD_DYLIB = 0x0000000C
LC_LOAD_WEAK_DYLIB = 0x80000018
LC_ENCRYPTION_INFO_64 = 0x0000002C
LC_BUILD_VERSION = 0x00000032
LC_DYLD_EXPORTS_TRIE = 0x80000033
Expand Down
6 changes: 6 additions & 0 deletions qiling/loader/macho_parser/loadcommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def get_complete(self):
LC_LOAD_DYLINKER : LoadDylinker,
LC_MAIN : LoadMain,
LC_LOAD_DYLIB : LoadDyLib,
LC_LOAD_WEAK_DYLIB : LoadWeakDyLib,
LC_ENCRYPTION_INFO_64 : LoadEncryptionInfo64,
LC_DYLD_EXPORTS_TRIE : LoadDyldExportTrie,
LC_DYLD_CHAINED_FIXUPS : LoadDyldChainedFixups,
Expand Down Expand Up @@ -255,6 +256,11 @@ def get_complete(self):
pass


class LoadWeakDyLib(LoadDyLib):
def __init__(self, data):
super().__init__(data)


class LoadUnixThread(LoadCommand):

def __init__(self, data):
Expand Down
0