This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: Odd function address in function instrumentation routines on ARM


On 03/01/2012 10:39 AM, Lorenz, Daniel wrote:
>  > On 03/01/2012 10:00 AM, Lorenz, Daniel wrote:
>  >> Is the function adress passed to __cyg_profile_func_enter and __cyg_profile_func_exit intenionally odd on ARM,
>  >> even when specifing -falign-function=4?
>  >
>  > Is this thumb code?
> 
> according to readelf:
> Tag_THUMB_ISA_use: Thumb-2

Right, so those function addresses are correct: Bit 0 in LR is the thumb
bit.  if you don't want it, clear it.

Andrew.


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