summaryrefslogtreecommitdiff
path: root/list-obj-sizes.awk
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-04-19 20:35:43 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-04-19 20:35:43 +0200
commit8c4130e4e9b5823de08deb093e6b66d44bce99ea (patch)
tree1bd34d8b429c78e96981670545b4f241bf7fd9d3 /list-obj-sizes.awk
parent06fe7d833371ee38e61507c35f7b901482a7e2f0 (diff)
downloadnettle-8c4130e4e9b5823de08deb093e6b66d44bce99ea.tar.gz
Decimal output from list-obj-sizes.
Diffstat (limited to 'list-obj-sizes.awk')
-rwxr-xr-xlist-obj-sizes.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/list-obj-sizes.awk b/list-obj-sizes.awk
index 4736c16c..2c0f644c 100755
--- a/list-obj-sizes.awk
+++ b/list-obj-sizes.awk
@@ -4,7 +4,7 @@
#
# objdump -h libnettle.a
-function hex2int (hex) {
+function hex2int (hex, n, i) {
n = 0;
hex = tolower(hex);
for (i = 1; i<=length(hex); i++)
@@ -18,7 +18,7 @@ function hex2int (hex) {
function output () {
if (name)
{
- printf "%25s %6x %6x %6x\n", name, text_size, data_size, rodata_size;
+ printf "%25s %6d %6d %6d\n", name, text_size, data_size, rodata_size;
text_total += text_size;
data_total += data_size;
rodata_total += rodata_size;
@@ -63,5 +63,5 @@ BEGIN {
END {
output();
- printf "%25s %6x %6x %6x\n", "TOTAL", text_total, data_total, rodata_total;
+ printf "%25s %6d %6d %6d\n", "TOTAL", text_total, data_total, rodata_total;
}