From 74903ef0c8d838021035a0ece7f749cf2ea44937 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 30 Jun 2026 08:45:15 +0100 Subject: 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 --- scripts/bloat-o-meter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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): prefix = os.getenv("CROSS_COMPILE", "") for l in os.popen(prefix + "objdump -h " + file).readlines(): x = l.split() - if len(x) != 7: continue + if len(x) != 7 and len(x) != 5: continue sections[x[1]] = 1 if x[1] not in [".rdata"]: continue sym[x[1]] = {"addr" : int(x[3], 16), "size" : int(x[2], 16)} -- cgit v1.2.3-55-g6feb