[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>
This commit is contained in:
Родитель
f867d2a2e5
Коммит
51849738cf
|
@ -18,7 +18,8 @@ def getsizes(file):
|
||||||
for l in os.popen("nm --size-sort " + file).readlines():
|
for l in os.popen("nm --size-sort " + file).readlines():
|
||||||
size, type, name = l[:-1].split()
|
size, type, name = l[:-1].split()
|
||||||
if type in "tTdDbB":
|
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
|
return sym
|
||||||
|
|
||||||
old = getsizes(sys.argv[1])
|
old = getsizes(sys.argv[1])
|
||||||
|
|
Загрузка…
Ссылка в новой задаче