MCPcopy Index your code
hub / github.com/angr/cle

github.com/angr/cle @v9.2.222

Chat with this repo
repository ↗ · DeepWiki ↗ · release v9.2.222 ↗ · + Follow
1,649 symbols 4,897 edges 143 files 630 documented · 38% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Mach-O Support Notes and Caveats

The Mach-O support provided by this contribution is considered experimental but stable. It has been mainly tested with ARM64 Mach-O binaries and a few ARMv7 binaries.

As of 14.12.2016 the system can be used to load both Mach-O executables as well as libraries. However some caveats apply:

CAVEATS

  • Currently this system can load only ONE binary, i.e. loading a binary with all its dependencies is not possible.
  • No rebasing support
  • Mach-O rebasing requires involvement of the entire binary in order to interpret a linker script embedded in said binary.
  • Currently the interface for binaries an CLE does not provide the required capabilities (turn rebase_addr into a property?)
  • Not all fields are filled in accordance with Angr's expectations.
  • Overall integration into Angr/CLE could be better
  • PAGEZERO is not mapped to conserve memory

Core symbols most depended-on inside this repo

append
called by 200
cle/backends/regions.py
seek
called by 70
cle/memory.py
read
called by 68
cle/memory.py
unpack_word
called by 65
cle/memory.py
from_lva
called by 55
cle/address_translator.py
get
called by 55
cle/backends/elf/hashtable.py
to_rva
called by 54
cle/address_translator.py
pack_word
called by 50
cle/memory.py

Shape

Method 1,100
Class 400
Function 134
Route 15

Languages

Python100%

Modules by API surface

cle/memory.py72 symbols
tests/test_symbolserver.py64 symbols
cle/loader.py53 symbols
cle/backends/elf/relocation/ppc.py52 symbols
cle/backends/backend.py51 symbols
cle/backends/macho/macho.py50 symbols
cle/backends/elf/elf.py47 symbols
cle/backends/macho/symbol.py43 symbols
cle/backends/macho/binding.py42 symbols
cle/backends/coff.py42 symbols
cle/backends/elf/relocation/arm64.py38 symbols
cle/backends/elf/relocation/arm.py38 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add cle \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact