This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: extracting size of a symbol
- From: diz rael <dizraelus at yahoo dot com>
- To: diz rael <dizraelus at yahoo dot com>, binutils at sources dot redhat dot com
- Date: Mon, 23 Aug 2004 22:51:50 -0700 (PDT)
- Subject: 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