This is the more correct location. The targets/cortex-m.s file is really just for qemu, not for Cortex-M in general.