This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Problem with ARM port and pow() function
Hi Fau,
Do you have any idea for the math functions crash?
Are you still compiling for thumb ? If so then the problem might be
connected to how the first newlib math function calls the second newlib
function (or how the second one returns). Could you try compiling (and
linking) in arm mode, to see if this fixes the problem ?
The other possibility is stack corruption. If the return address (from
the second function to the first function) is held on the stack, and
some bug in the second function corrupts the stack, then this can cause
all kinds of mischief. To look for this, step into the second function
(in the debugger) and then look on the stack for the return address.
Then put a memory watchpoint on that location and continue the second
function.
Cheers
Nick