This is the mail archive of the binutils@sourceware.org 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: How to get start/end information about functions?


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


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