提交 51849738 编写于 作者: R Rob Landley 提交者: Linus Torvalds

[PATCH] bloat-o-meter: gcc-4 fix

Upgrade scripts/bloat-o-meter to handle the names gcc 4 gives static
symbols.
Signed-off-by: NRob Landley <rob@landley.net>
Signed-off-by: NMatt Mackall <mpm@selenic.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 f867d2a2
......@@ -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])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册