Is there something like the "size" tool to find out the segment size of an executable? The only possibility I found is to disassemble it using xobjdump.
That's what I mean:
Code: Select all
> size tools/hexdump/hexdump
text data bss dec hex filename
2121 532 24 2677 a75 tools/hexdump/hexdump
Edit:
This is *nearly* the solution:
Code: Select all
xobjdump --disassemble-all $@ | grep "size" | grep -e "text\|init\|rodata"