constantine/helpers/explain_bin_size.sh

4 lines
155 B
Bash

#!/bin/sh
# Explain size of ELF .o files (does not work with gcc -flto).
nm -oS --defined-only -fposix -td "$@" |
sort -nk5 | awk '{print $1,$2,$3,$5}'