Skip to content

Commit

Permalink
[PATCH] bloat-o-meter: gcc-4 fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
landley authored and Linus Torvalds committed Jun 25, 2006
1 parent f867d2a commit 5184973
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/bloat-o-meter
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 5184973

Please sign in to comment.