How to get start/end information about functions?
Nick Clifton
nickc@redhat.com
Mon Apr 14 14:34:00 GMT 2008
Hi PRC,
> It cannot handle the case where `.rodata' and `.text' sections are put
> togather, which seems very common for most linker scripts.
Really ? Can you give an example of a target that does this ?
Of course you could always write your own linker script which does not
merge the .text and .rodata sections, or which places a symbol at the
end of the .text section and before the start of the .rodata section.
Alternatively you could search for the last function's name in the
symbol table - the size of the symbol will be the size of the function.
Cheers
Nick
More information about the Binutils
mailing list