@ -804,7 +804,7 @@ if (DEFINED FREERTOS_ARM_V_8_1_M_PACBTI_CONFIG )
- m b r a n c h - p r o t e c t i o n = b t i + p a c - r e t + l e a f
)
target_compile_definitions ( freertos_config
PU B L I C
IN T E R F A C E
c o n f i g E N A B L E _ P A C = 1
c o n f i g E N A B L E _ B T I = 1
)
@ -815,7 +815,7 @@ if (DEFINED FREERTOS_ARM_V_8_1_M_PACBTI_CONFIG )
target_compile_options ( freertos_kernel_port PUBLIC $< $<STREQUAL:${CMAKE_C_COMPILER_ID},ARMClang > :-mbranch-protection=pac-ret> )
target_compile_options ( freertos_kernel_port PUBLIC $< $<STREQUAL:${CMAKE_C_COMPILER_ID},IAR > : $< $<COMPILE_LANGUAGE:C,CXX > :--branch_protection=pac-ret>> )
target_compile_definitions ( freertos_config
PU B L I C
IN T E R F A C E
c o n f i g E N A B L E _ P A C = 1
)
elseif ( FREERTOS_ARM_V_8_1_M_PACBTI_CONFIG STREQUAL "ARM_V_8_1_M_PACBTI_CONFIG_PACRET_LEAF" )
@ -825,7 +825,7 @@ if (DEFINED FREERTOS_ARM_V_8_1_M_PACBTI_CONFIG )
- m b r a n c h - p r o t e c t i o n = p a c - r e t + l e a f
)
target_compile_definitions ( freertos_config
PU B L I C
IN T E R F A C E
c o n f i g E N A B L E _ P A C = 1
)
elseif ( ${ CMAKE_C_COMPILER_ID } STREQUAL "IAR" )
@ -835,7 +835,7 @@ if (DEFINED FREERTOS_ARM_V_8_1_M_PACBTI_CONFIG )
target_compile_options ( freertos_kernel_port PUBLIC $< $<STREQUAL:${CMAKE_C_COMPILER_ID},ARMClang > :-mbranch-protection=bti> )
target_compile_options ( freertos_kernel_port PUBLIC $< $<STREQUAL:${CMAKE_C_COMPILER_ID},IAR > : $< $<COMPILE_LANGUAGE:C,CXX > :--branch_protection=bti>> )
target_compile_definitions ( freertos_config
PU B L I C
IN T E R F A C E
c o n f i g E N A B L E _ B T I = 1
)
elseif ( FREERTOS_ARM_V_8_1_M_PACBTI_CONFIG STREQUAL "ARM_V_8_1_M_PACBTI_CONFIG_NONE" )
@ -846,7 +846,7 @@ if (DEFINED FREERTOS_ARM_V_8_1_M_PACBTI_CONFIG )
)
endif ( )
target_compile_definitions ( freertos_config
PU B L I C
IN T E R F A C E
c o n f i g E N A B L E _ P A C = 0
c o n f i g E N A B L E _ B T I = 0
)