diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-03-30 19:14:27 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-03-30 19:26:40 +0200 |
commit | b1b70969e06658555d07d5cab40fb8a70c251e1b (patch) | |
tree | 269fc12a0150811a4091a8a9ab7976ea9520cd92 | |
parent | 0d6bbb0497016d23e1e480a47b2e0823918de021 (diff) | |
download | busybox-b1b70969e06658555d07d5cab40fb8a70c251e1b.tar.gz |
bloat-o-meter: handle huge (hex) sizes.
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>
-rwxr-xr-x | scripts/bloat-o-meter | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 0d3ff7f5e..d095b27b5 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter @@ -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: |