It’s a bug in your startup code. Most likely you’re trying to call a C function or some other function that needs a stack or an initialized data segment, before they have been properly set up (or initialized in the case of .data).
It could also be the memory layout of your board differs, and the code isn’t properly relocated for it.