od: fix buglet in --traditional, microoptimization,
document coreutils bug bloat-o-meter: account for objects in rodata too
This commit is contained in:
@ -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():
|
||||
|
Reference in New Issue
Block a user