We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e2cd39 commit 3bc8fd0Copy full SHA for 3bc8fd0
utils/analysis/cmp-plugins-size.py
@@ -72,9 +72,11 @@ def map_info(map):
72
f = open(map).read() # read map content
73
74
s = re.search('^PLUGIN_RAM *0x(\d|[abcdef])*', f, re.MULTILINE)
75
+ if not s: return (name, 0)
76
plugin_start = re.sub('^PLUGIN_RAM *0x0*', '', f[s.start():s.end()])
77
78
s = re.search('^\.pluginend *0x(\d|[abcdef])*', f, re.MULTILINE)
79
80
plugin_end = re.sub('^\.pluginend *0x0*', '', f[s.start():s.end()])
81
82
size = int(plugin_end, 16) - int(plugin_start, 16)
0 commit comments