This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
"size" of relocatable objects
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Tue, 22 May 2007 11:04:28 +0930
- Subject: "size" of relocatable objects
Someone at IBM noticed that "size" ignores common variables in
relocatable object files, and wondered whether we could enhance "size"
to show them. Well, of course we can, but should we? Opinions?
I'm inclined to say "just use awk".
objdump -t some_file.o | grep '\*COM\*' | \
awk '{ com += strtonum ("0x" $1) } END { print com; }'
However, many people don't have even my feeble awk skills..
--
Alan Modra
IBM OzLabs - Linux Technology Centre