GCC-3.4, official way to get size of functions ?

Ian Lance Taylor ian@wasabisystems.com
Tue Oct 21 16:08:00 GMT 2003


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



More information about the Binutils mailing list