Skip to content
Snippets Groups Projects
Commit 940734e1 authored by Niels Möller's avatar Niels Möller
Browse files

New file.

Rev: src/nettle/list-obj-sizes.awk:1.1
parent 127f55dc
Branches
Tags
No related merge requests found
#! /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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment