title: dumping C structure sizes from ELF object file
body: <p>How can you extract the sizes of all C structures from an ELF object file with debugging symbols?</p>
  
  <p>Individual struct sizes can be obtained from GDB using "print sizeof(some_struct)", but what I need is to get a listing of all structures.</p>
  
  <p>I've looked at "nm" and "objdump", but I don't see options to do what I'm looking for.  Is there a way to do this with standard Unix tools, or do I need to extract the debug symbol section from the ELF file and process it myself?  I'm hoping it's not the latter.</p>
  
  <p>Thanks in advance for any advice.
  Ray</p>