diff options
author | Rob Landley <rob@landley.net> | 2006-06-25 14:47:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 19:01:00 +0200 |
commit | 51849738cf3af4d2c43a657e811a89e7f69eccc2 (patch) | |
tree | 75329a000346c46d113d15098743ce4edbcd72cd | |
parent | [PATCH] ensure NULL deref can't possibly happen in is_exported() (diff) | |
download | linux-51849738cf3af4d2c43a657e811a89e7f69eccc2.tar.xz linux-51849738cf3af4d2c43a657e811a89e7f69eccc2.zip |
[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 <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>
-rwxr-xr-x | scripts/bloat-o-meter | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 75f21d843c1d..ce59fc2d8de4 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]) |