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]

Re: extracting size of a symbol


I was wondering if someone knows how to do this, or if
there is a more appropriate mailing list for this kind
of question.

Thanks,

diz.

--- diz rael <dizraelus@yahoo.com> wrote:

> 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
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


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