aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2026-06-30 08:45:15 +0100
committerRon Yorston <rmy@pobox.com>2026-06-30 08:45:15 +0100
commit74903ef0c8d838021035a0ece7f749cf2ea44937 (patch)
treeb2c6fbb302d2cf6ff3bd53d238f2ec4e10913177 /scripts
parent94cfedd0f57b4af77a90414d148e3fe6e6958e45 (diff)
downloadbusybox-w32-74903ef0c8d838021035a0ece7f749cf2ea44937.tar.gz
busybox-w32-74903ef0c8d838021035a0ece7f749cf2ea44937.tar.bz2
busybox-w32-74903ef0c8d838021035a0ece7f749cf2ea44937.zip
build system: allow bloatcheck to work (a bit) for llvm
'make bloatcheck' didn't work in the ARM build because it didn't handle the different output formats of llvm's 'objdump' and 'nm'. Allow for 'objdump -h' printing 5 rather than 7 fields. This at least gets us some output. 'nm' always seems to print symbol sizes of zero, though, which isn't very useful. Signed-off-by: Ron Yorston <rmy@pobox.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bloat-o-meter2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter
index 26474595f..2c0a2e37e 100755
--- a/scripts/bloat-o-meter
+++ b/scripts/bloat-o-meter
@@ -87,7 +87,7 @@ def getsizes_pe(file):
87 prefix = os.getenv("CROSS_COMPILE", "") 87 prefix = os.getenv("CROSS_COMPILE", "")
88 for l in os.popen(prefix + "objdump -h " + file).readlines(): 88 for l in os.popen(prefix + "objdump -h " + file).readlines():
89 x = l.split() 89 x = l.split()
90 if len(x) != 7: continue 90 if len(x) != 7 and len(x) != 5: continue
91 sections[x[1]] = 1 91 sections[x[1]] = 1
92 if x[1] not in [".rdata"]: continue 92 if x[1] not in [".rdata"]: continue
93 sym[x[1]] = {"addr" : int(x[3], 16), "size" : int(x[2], 16)} 93 sym[x[1]] = {"addr" : int(x[3], 16), "size" : int(x[2], 16)}