checkstack: Handle callw instruction
Minor update to the checkstack.py tool.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
diff --git a/scripts/checkstack.py b/scripts/checkstack.py
index e86a649..b49b6c8 100755
--- a/scripts/checkstack.py
+++ b/scripts/checkstack.py
@@ -181,6 +181,8 @@
noteCall(cur, subfuncs, insnaddr, calladdr, 0)
elif insn.startswith('calll'):
noteCall(cur, subfuncs, insnaddr, calladdr, stackusage + 4)
+ elif insn.startswith('callw'):
+ noteCall(cur, subfuncs, insnaddr, calladdr, stackusage + 2)
else:
print("unknown call", ref)
noteCall(cur, subfuncs, insnaddr, calladdr, stackusage)