]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] bloat-o-meter: gcc-4 fix
authorRob Landley <rob@landley.net>
Sun, 25 Jun 2006 12:47:10 +0000 (05:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:00 +0000 (10:01 -0700)
Upgrade scripts/bloat-o-meter to handle the names gcc 4 gives static
symbols.

Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
scripts/bloat-o-meter

index 75f21d843c1d5f814176bf6d33a37313146ad529..ce59fc2d8de496ee6c12e4032949136a27ee3b62 100755 (executable)
@@ -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])