From: Rob Landley Date: Sun, 25 Jun 2006 12:47:10 +0000 (-0700) Subject: [PATCH] bloat-o-meter: gcc-4 fix X-Git-Tag: v2.6.18-rc1~1037 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=51849738cf3af4d2c43a657e811a89e7f69eccc2;p=linux-2.6-omap-h63xx.git [PATCH] bloat-o-meter: gcc-4 fix Upgrade scripts/bloat-o-meter to handle the names gcc 4 gives static symbols. Signed-off-by: Rob Landley Signed-off-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 75f21d843c1..ce59fc2d8de 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])