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: Procedure bounds


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


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