This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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; }'
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |