summaryrefslogtreecommitdiff
path: root/tools/asm_processor/asm_processor.py
diff options
context:
space:
mode:
authorRémi Calixte <remicalixte.rmc@gmail.com>2021-03-27 18:38:59 +0100
committerRémi Calixte <remicalixte.rmc@gmail.com>2021-03-27 18:38:59 +0100
commit352625ff40a989775c396b1db2c6e4fcc22b1967 (patch)
treed4e439d9c57725346a82e354590d4680ab6319a3 /tools/asm_processor/asm_processor.py
parent4ed9bcf63ab72b401ef0bf70b9152754c53ad2e4 (diff)
asm_processor: count bls, .word and .extern correctly
Diffstat (limited to 'tools/asm_processor/asm_processor.py')
-rwxr-xr-xtools/asm_processor/asm_processor.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/asm_processor/asm_processor.py b/tools/asm_processor/asm_processor.py
index d97dfe86..13ebf106 100755
--- a/tools/asm_processor/asm_processor.py
+++ b/tools/asm_processor/asm_processor.py
@@ -584,8 +584,12 @@ class GlobalAsmBlock:
elif line.startswith('.byte'):
self.add_sized(len(line.split(',')), real_line)
# Branches are 4 bytes long
- elif line.startswith('bl'):
+ elif line.startswith('bl') and not line.startswith('bls'):
self.add_sized(4, real_line)
+ elif line.startswith('.word'):
+ self.add_sized(4, real_line)
+ elif line.startswith('.extern'):
+ pass
else:
# Unfortunately, macros are hard to support for .rodata --
# we don't know how how space they will expand to before