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]

"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]