]> begriffs open source - freertos/commit
Add definition of portDONT_DISCARD to ARMv7-M ports (#50)
authorGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Tue, 14 Apr 2020 16:03:11 +0000 (09:03 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2020 16:03:11 +0000 (09:03 -0700)
commit07e672c448e2a4ea56ae793f1c6dae26d908b16e
tree2dc2a90ee815e9928d3fcd2202b07a7fc0e12de4
parent334de5d8ab557940b9420b00838fdc32eb4a1598
Add definition of portDONT_DISCARD to ARMv7-M ports (#50)

Enabling Link Time Optimization (LTO) causes some of the functions used
in assembly to be incorrectly stripped off, resulting in linker error.
To avoid this, these functions are marked with portDONT_DISCARD macro,
definition of which is port specific. This commit adds the definition
of portDONT_DISCARD for ARMv7-M ports.

Signed-off-by: Gaurav Aggarwal
portable/GCC/ARM_CM0/portmacro.h
portable/GCC/ARM_CM3/portmacro.h
portable/GCC/ARM_CM3_MPU/portmacro.h
portable/GCC/ARM_CM4F/portmacro.h
portable/GCC/ARM_CM4_MPU/portmacro.h
portable/GCC/ARM_CM7/r0p1/portmacro.h