-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arch: arm: cortex_a_r: XIP=y causes linker error #72696
Comments
@sigmundklaa - can you potentially reproduce this with an in-tree board? |
CC @dleach02 |
Yes ofcourse. I get the same error when compiling for the west build -p always -b s32z2xxdc2/s32z270/rtu1 samples/hello_world -- -DCONFIG_XIP=y |
I am facing the same problem, trying to compile zephyr for another chip in the family. My toolchain is even older, GCC 7.5.0 (big endian). |
@sigmundklaa hello, I managed to build the zephyr toolchain (GCC 12.x) for armv7-r big-endian. Please check zephyrproject-rtos/sdk-ng#765 Here's direct link to the download: https://github.com/zephyrproject-rtos/sdk-ng/suites/24251779094/artifacts/1546357536 |
@ntavish Nice! I can check it out later. Did that in any way impact the XIP issue though? |
I think so, don't see it anymore, although I have several other errors right now and possibly my build stops before that (seems unlikely though). |
I think @sigmundklaa's reasoning is correct and the two cannot be combined, please check the PR I made. |
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: