GCC alias to function outside of translation unit -AKA- is this even the right tool for the job?

前端 未结 4 657
野趣味
野趣味 2020-12-10 15:08

I\'m working with FreeRTOS on an STM32 (Cortex-M3), and using the CMSIS library from ST to bootstrap everything.

The CMSIS library defines the weak symbol SV

4条回答
  •  囚心锁ツ
    2020-12-10 15:20

    You should be able to do this either with a linker script, or by passing the appropriate option to the linker, eg. for ld, --defsym=SVC_Handler=vPortSVCHandler

    See the binutils documentation for more information on the ld --defsym option, and assignments in linker scripts

提交回复
热议问题