arch: arm: cortex_a_r: XIP=y causes linker error #72696
Labels
area: ARM
ARM (32-bit) Architecture
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
When a Cortex A/R based SoC is compiled with
CONFIG_XIP=y
, linking fails with the following syntax error:I am compiling for an
ARM Cortex R4F
, using out-of-tree SoC support for the TMS570LS1224 which is linked at the bottom of the issue. The cause seems to be the below line (fromlinker_zephyr_pre0.cmd:175
):which is the result of:
zephyr/include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld
Line 277 in d9b3ffa
From what I can tell, combining
ALIGN_WITH_INPUT
andALIGN
is not supported, however I'm not sure of this. For me, replacingSECTION_DATA_PROLOGUE
withSECTION_PROLOGUE
fixed the issue, but I don't know if that is the best solution.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful compilation
Impact
Prevents compilation
Environment (please complete the following information):
Additional context
My setup, including a patched big endian ARM GCC toolchain, is available at https://github.com/OrbitNTNU/zephyr-hw
The text was updated successfully, but these errors were encountered: