change -mcpu=cortex-m3 -mthumb to LD_FLAGS