stm32: ld: cleanup ld flag and behavior