diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 75f21d843c1d5f814176bf6d33a37313146ad529..ce59fc2d8de496ee6c12e4032949136a27ee3b62 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter @@ -18,7 +18,8 @@ def getsizes(file): for l in os.popen("nm --size-sort " + file).readlines(): size, type, name = l[:-1].split() if type in "tTdDbB": - sym[name] = int(size, 16) + if "." in name: name = "static." + name.split(".")[0] + sym[name] = sym.get(name, 0) + int(size, 16) return sym old = getsizes(sys.argv[1])