The change would be in arm_type_of_stub to return a different type of stub. However I don't think this should be done, only an error should be reported if the target is ARM and the device is a Cortex-M. Otherwise you could by mistake link in an ARM function and you wouldn't get any error until you run it.
The change would be in arm_type_of_stub to return a different type of stub. However I don't think this should be done, only an error should be reported if the target is ARM and the device is a Cortex-M. Otherwise you could by mistake link in an ARM function and you wouldn't get any error until you run it.
Best regards.