Forum Discussion
Altera_Forum
Honored Contributor
15 years agoGcc4 Frame Pointer Issue
I've been trying to write some code in an MPU exception handler to trap and dump the call stack when an intermittent exception occurs in our system and am pretty sure I've found a bug in the latest G...
Altera_Forum
Honored Contributor
12 years agoThe linker script could well add global symbols at the ends of the code space.
It should then be possible to define C symbols with the same names and take their addresses. Actually it probably isn't that difficult to fix gcc to output the correct prologue and epilogue. It is also worth checking the epilogue. There was a bug in gcc for arm that caused it to adjust the stack pointer and then load the return value from an address below the sp - which an interrupt could have overwritten.