This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: GCC-3.4, official way to get size of functions ?
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Etienne Lorrain <etienne_lorrain at yahoo dot fr>
- Cc: binutils at sources dot redhat dot com
- Date: 21 Oct 2003 09:08:08 -0700
- Subject: Re: GCC-3.4, official way to get size of functions ?
- References: <20031021110906.30295.qmail@web11803.mail.yahoo.com>
Etienne Lorrain <etienne_lorrain@yahoo.fr> writes:
> Is there any official way to get the value of this last
> debugging symbol - or an official way to get the size of a
> function?
In ELF you can normally find the size of a function in the st_size
field of the function's entry in the symbol table.
This is displayed in the fifth column of objdump -t or the second
column of readelf -s.
Ian