Unified startup code and link scripts for Cortex-M microcontrollers