diff options
-rwxr-xr-x | scripts/bloat-o-meter | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 75f21d843c1d..ce59fc2d8de4 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter | |||
@@ -18,7 +18,8 @@ def getsizes(file): | |||
18 | for l in os.popen("nm --size-sort " + file).readlines(): | 18 | for l in os.popen("nm --size-sort " + file).readlines(): |
19 | size, type, name = l[:-1].split() | 19 | size, type, name = l[:-1].split() |
20 | if type in "tTdDbB": | 20 | if type in "tTdDbB": |
21 | sym[name] = int(size, 16) | 21 | if "." in name: name = "static." + name.split(".")[0] |
22 | sym[name] = sym.get(name, 0) + int(size, 16) | ||
22 | return sym | 23 | return sym |
23 | 24 | ||
24 | old = getsizes(sys.argv[1]) | 25 | old = getsizes(sys.argv[1]) |