]> begriffs open source - freertos/commit
Fix out of offset errors when LTO is enabled (#71)
authorGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Wed, 10 Jun 2020 17:03:11 +0000 (10:03 -0700)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2020 17:03:11 +0000 (10:03 -0700)
commitc4b4156fcf63665b70094aa948520ad8778af684
tree893c707f02af2a8ee54193b6b670ad42b2ee859f
parent6199b72fbf57a7c5b3d7b195a3bd1446779314cd
Fix out of offset errors when LTO is enabled (#71)

When Link Time Optimization (LTO) is enabled, some of the LDR
instructions result in out of range access. The reason is that the
default generated literal pool is too far and not within the permissible
range of 4K.

This commit adds LTORG assembly instructions at required places to
ensure that access to literals remain in the permissible range of 4K.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
portable/GCC/ARM_CM3/port.c
portable/GCC/ARM_CM3_MPU/port.c
portable/GCC/ARM_CM4F/port.c
portable/GCC/ARM_CM4_MPU/port.c
portable/GCC/ARM_CM7/r0p1/port.c