Commit 940734e1 authored by Niels Möller's avatar Niels Möller

New file.

Rev: src/nettle/list-obj-sizes.awk:1.1
parent 127f55dc
#! /usr/bin/gawk -f
# Run this filter on the output of
#
# objdump -h libnettle.a
BEGIN {
print "file text-size data-size rodata-size";
text_total = 0;
data_total = 0;
rodata_total = 0;
}
/elf32/ { name = $1; text_size = data_size = rodata_size = 0; }
/\.text/ { text_size = $3 }
/\.data/ { data_size = $3; }
/\.rodata/ { rodata_size = $3; }
/\.comment/ {
printf "%15s %s %s %s\n", name, text_size, data_size, rodata_size;
}
END {
printf "%15s %s %s %s\n", "TOTAL", text_total, data_total, rodata_total;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment