This is the mail archive of the binutils@sources.redhat.com 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]

extracting size of a symbol


What is the easiest way of extracting the size of a
symbol (eg. global variable/function)?

bfd_print_symbol produces this info. but I want to
extract just the size, and not print it to a stream.

Currently, I'm just sorting symbols within their
sections and subtracting addresses of consecutive
entries to calculate their sizes.

I'm sure there is a better way to do this, so any
suggestions would be appreciated.

Thanks!


		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush


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