aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-03-26 19:26:20 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-03-26 21:55:24 -0400
commitd4f09bc20d44249855d84183369f34c64c84864c (patch)
tree051ad99d0a8dd99d4ce409f44f6520c7792e1461
parentd67f962a386af60d495cf17789436fa352c9dfe9 (diff)
downloadkutter-d4f09bc20d44249855d84183369f34c64c84864c.tar.gz
kutter-d4f09bc20d44249855d84183369f34c64c84864c.tar.xz
kutter-d4f09bc20d44249855d84183369f34c64c84864c.zip
checkstack: Updates for newer binutils
Newer versions of binutils report the variable name on memory accesses. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rwxr-xr-xscripts/checkstack.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/checkstack.py b/scripts/checkstack.py
index d4f58cf3..cbeb415d 100755
--- a/scripts/checkstack.py
+++ b/scripts/checkstack.py
@@ -172,6 +172,9 @@ def main():
if '+' in ref:
# Inter-function jump.
pass
+ elif insn.startswith('ld') or insn.startswith('st'):
+ # memory access
+ pass
elif insn in ('rjmp', 'jmp', 'brne', 'brcs'):
# Tail call
cur.noteCall(insnaddr, calladdr, 0)