bloat-o-meter: handle huge (hex) sizes.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 30 Mar 2012 17:14:27 +0000 (19:14 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 30 Mar 2012 17:26:40 +0000 (19:26 +0200)
dynamic symbols with size >99999 are printed in hex.
see print_vma(psym->st_size, DEC_5)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
scripts/bloat-o-meter

index 0d3ff7f5e6f9cd0a28920af4b5522e8f78929d21..d095b27b59e202cefa263577050019fcbc5216c4 100755 (executable)
@@ -57,7 +57,7 @@ def getsizes(file):
         #    if typ in ["SECTION", "FILES"]: continue # skip sections and files
         if "." in name: name = "static." + name.split(".")[0]
         value = int(value, 16)
-        size = int(size)
+        size = int(size, 16) if size.startswith('0x') else int(size)
         if vis != "DEFAULT" and bind != "GLOBAL": # see if it is an alias
             alias[(value, size)] = {"name" : name}
         else: