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>
This commit is contained in:
Kevin O'Connor 2017-03-26 19:26:20 -04:00
parent d67f962a38
commit d4f09bc20d
1 changed files with 3 additions and 0 deletions

View File

@ -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)