scripts/bloat-o-meter: Support comparing library archives
[linux-2.6-block.git] / scripts / bloat-o-meter
index 8c965f6a988122f1180d34818dcc8007bf1f944b..d7ca46c612b3435a7e9b6dc48768a8ede569322e 100755 (executable)
@@ -26,6 +26,8 @@ def getsizes(file, format):
     sym = {}
     with os.popen("nm --size-sort " + file) as f:
         for line in f:
+            if line.startswith("\n") or ":" in line:
+                continue
             size, type, name = line.split()
             if type in format:
                 # strip generated symbols