- skip empty lines and archive members
No binary (build failed)
—
(log yok)
| @@ -21,6 +21,12 @@ for f in sys.argv[1], sys.argv[2]: | |
| def getsizes(file): | |
| sym = {} | |
| for l in os.popen("nm --size-sort " + file).readlines(): | |
| + | l = l.strip() |
| + | # Skip empty lines |
| + | if not len(l): continue |
| + | # Skip archive members |
| + | if len(l.split()) == 1 and l.endswith(':'): |
| + | continue |
| size, type, name = l[:-1].split() | |
| if type in "tTdDbBrR": | |
| if "." in name: name = "static." + name.split(".")[0] | |