.. | .. |
---|
26 | 26 | sym = {} |
---|
27 | 27 | with os.popen("nm --size-sort " + file) as f: |
---|
28 | 28 | for line in f: |
---|
| 29 | + if line.startswith("\n") or ":" in line: |
---|
| 30 | + continue |
---|
29 | 31 | size, type, name = line.split() |
---|
30 | 32 | if type in format: |
---|
31 | 33 | # strip generated symbols |
---|
32 | 34 | if name.startswith("__mod_"): continue |
---|
33 | 35 | if name.startswith("__se_sys"): continue |
---|
34 | 36 | if name.startswith("__se_compat_sys"): continue |
---|
| 37 | + if name.startswith("__addressable_"): continue |
---|
35 | 38 | if name == "linux_banner": continue |
---|
36 | 39 | # statics and some other optimizations adds random .NUMBER |
---|
37 | 40 | name = re_NUMBER.sub('', name) |
---|