readme: document --subs-only flag

This commit is contained in:
x86byte
2026-06-29 12:55:18 +01:00
parent a6e86fd2f2
commit 815ddc53d4
+4 -2
View File
@@ -26,10 +26,11 @@ It handles indirect branches by:
## usage ## usage
``` ```
cfgrip <binary> cfgrip [--subs-only] <binary>
``` ```
That's it. Feed it a binary, get `<binary>.cfg` as output. Feed it a binary, get `<binary>.cfg` as output.
Use `--subs-only` to extract only functions reachable from the entry point through the call graph — skips unreachable exports and prolog candidates.
--- ---
Example: Example:
@@ -415,5 +416,6 @@ cmake --build build --config Release
| | Exports | YES | | | Exports | YES |
| | `call` targets | YES | | | `call` targets | YES |
| | Prolog scanning (`push rbp`, CET `endbr64`) | YES | | | Prolog scanning (`push rbp`, CET `endbr64`) | YES |
| **Subs-only mode** | `--subs-only` flag | YES |