This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Procedure bounds
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Sumesh UdayaKumaran <sumesh_uk at hotmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 29 Apr 2005 08:37:18 +0930
- Subject: Re: Procedure bounds
- References: <BAY103-F30A085BA97C5A3AA2444989B230@phx.gbl>
On Thu, Apr 28, 2005 at 10:47:16PM +0000, Sumesh UdayaKumaran wrote:
> Hello everyone.
> I am trying to find the starting address and end address of a function
> from the elf executable
> using BFD functions. I could find the start address as section->vma +
> corresponding symboltable entry->value. Can anyone tell me how I can find
> the end address of the procedure or starting address
> of the next procedure.
For ELF, the function symbol st_size should be the size of the function.
--
Alan Modra
IBM OzLabs - Linux Technology Centre