Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
53dac2dd
Commit
53dac2dd
authored
Jan 14, 2002
by
Niels Möller
Browse files
New file.
Rev: src/nettle/list-obj-sizes.awk:1.1
parent
1f0c020d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/nettle/list-obj-sizes.awk
0 → 100755
View file @
53dac2dd
#! /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
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment