fix(ghidra): point to the LC_MAIN entry when a stripped Mach-O has no main symbol (#12966)

* fix(ghidra): derive the LC_MAIN entry address from bounded snapshot reads

* fix(ghidra): point to the LC_MAIN entry when a stripped Mach-O has no main symbol

* fix(ghidra): keep snapshot cleanup failures from the LC_MAIN hint read

* fix(ghidra): admit the LC_MAIN segment's file range before hinting

* fix(ghidra): give no LC_MAIN hint for an entry in a file-only segment

admitMachoSegmentCommand admits a segment with no VM size and no protection but marks it unmapped; it owns no analysis address, so the hint must not name one.

* fix(ghidra): confirm Mach-O entry retries against the function inventory

* fix(hopper): offer inventory recovery for unresolved selectors

* fix(ida): offer inventory recovery for missing procedures

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
ashritandmorluto authored and GitHub committed 2026-11-22 14:14:21 +00:00
1 parent ec29a6deae
commit 3db9120c5e
15 files changed
+905 -69

No files matched your search

+1
View File
@@ -97,6 +97,7 @@ HopperProtocolError,,unreadable_output,execution_failure,false
HopperRemoteError,diagnostic_type=remote,execution_failure,execution_failure,false
HopperRemoteError,diagnostic_type=authorization,execution_failure,unavailable,false
HopperRemoteError,diagnostic_type=invalid_request,invalid_request,invalid_input,false
HopperRemoteError,diagnostic_type=selector_not_found,invalid_request,invalid_input,false
HopperRemoteError,diagnostic_type=capability_unavailable,execution_failure,execution_failure,false
HopperRemoteError,diagnostic_type=bridge_exception,execution_failure,execution_failure,false
HopperProcessError,,provider_unavailable,unavailable,true
1 tag discriminant code category retryable_by_default
97 HopperRemoteError diagnostic_type=remote execution_failure execution_failure false
98 HopperRemoteError diagnostic_type=authorization execution_failure unavailable false
99 HopperRemoteError diagnostic_type=invalid_request invalid_request invalid_input false
100 HopperRemoteError diagnostic_type=selector_not_found invalid_request invalid_input false
101 HopperRemoteError diagnostic_type=capability_unavailable execution_failure execution_failure false
102 HopperRemoteError diagnostic_type=bridge_exception execution_failure execution_failure false
103 HopperProcessError provider_unavailable unavailable true