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: GCC-3.4, official way to get size of functions ?


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


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