From 815ddc53d4b4653e17219c374d0613b5af7b81f9 Mon Sep 17 00:00:00 2001 From: x86byte <111459558+x86byte@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:55:18 +0100 Subject: [PATCH] readme: document --subs-only flag --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eff6c29..4728aba 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,11 @@ It handles indirect branches by: ## usage ``` -cfgrip +cfgrip [--subs-only] ``` -That's it. Feed it a binary, get `.cfg` as output. +Feed it a binary, get `.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: @@ -415,5 +416,6 @@ cmake --build build --config Release | | Exports | YES | | | `call` targets | YES | | | Prolog scanning (`push rbp`, CET `endbr64`) | YES | +| **Subs-only mode** | `--subs-only` flag | YES |