diff --git a/ChangeLog b/ChangeLog index cb90a6f1b5269ee8db51446ebe290eecf76b56f4..c99ba251cf09cb8c95dee8e153b6ad4949035cae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-04-19 Niels Möller <nisse@lysator.liu.se> + + * list-obj-sizes.awk: Use decimal rather than hexadecimal output. + (hex2int): Use local variables. + 2012-04-18 Niels Möller <nisse@lysator.liu.se> * x86_64/salsa20-crypt.asm: New file. diff --git a/list-obj-sizes.awk b/list-obj-sizes.awk index 4736c16c87fbeb0f515467e24764e83304c8d2a9..2c0f644cd9a898a6abab4da46498a0bb116443fd 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; }