od: fix buglet in --traditional, microoptimization,

document coreutils bug
bloat-o-meter: account for objects in rodata too
This commit is contained in:
Denis Vlasenko
2006-11-29 14:32:01 +00:00
parent 834410a5a5
commit 2425bdce34
2 changed files with 18 additions and 18 deletions

View File

@ -17,7 +17,7 @@ def getsizes(file):
sym = {}
for l in os.popen("nm --size-sort " + file).readlines():
size, type, name = l[:-1].split()
if type in "tTdDbB":
if type in "tTdDbBrR":
if "." in name: name = "static." + name.split(".")[0]
sym[name] = sym.get(name, 0) + int(size, 16)
for l in os.popen("readelf -S " + file).readlines():