Content originally posted in LPCWare by TheFallGuy on Tue Feb 25 14:28:00 MST 2014
I think the problem is in your startup code. You need to add a call to
WEAK void software_init_hook (void);
software_init_hook();
immediately after the data and bss sections have been initialised.