From 5410a56d20b57c95e44965e4600a55ad03578621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 22 Jan 2021 14:18:43 +0100 Subject: [PATCH] tools: Sort decomp symbols by address Makes it less tedious to add several decompiled functions to the function list --- tools/print_decomp_symbols.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/print_decomp_symbols.py b/tools/print_decomp_symbols.py index 5b02dab1..5e04dc40 100755 --- a/tools/print_decomp_symbols.py +++ b/tools/print_decomp_symbols.py @@ -22,7 +22,7 @@ config: dict = dict() diff_settings.apply(config, {}) myimg: str = config["myimg"] -entries = [x.strip().split() for x in subprocess.check_output(["nm", myimg], universal_newlines=True).split("\n")] +entries = [x.strip().split() for x in subprocess.check_output(["nm", "-n", myimg], universal_newlines=True).split("\n")] for entry in entries: if len(entry) == 3: