thumb-2 and crt0.S init_hooks
Mon Oct 6 19:50:00 GMT 2008
> The problem isn't the address of the hardware_init_hook, though,
> but of the return address that was set up by the
> mov lr, pc
> instruction. It looks to me as though the pc value (transferred to the lr)
> does not have the low bit set, and so a function that returns with
> bx lr
> rather than
> mov pc, lr
> will fault.
Good point. You are right, your patch will solve the problem.
Jeff - can Bill's patch from here:
be checked in please ?
More information about the Newlib