Skip to content
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

Linking fails with latest master on ARM64 platform #31952

Closed
igallib86 opened this issue Feb 3, 2021 · 6 comments
Closed

Linking fails with latest master on ARM64 platform #31952

igallib86 opened this issue Feb 3, 2021 · 6 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@igallib86
Copy link

Working with ARM64 platform, after rebase over latest mainline, I get the following linker error:

zephyr/kernel/libkernel.a(mmu.c.obj): in function z_mem_manage_init': ~/zephyrproject/zephyr/kernel/mmu.c:527:(.text.z_mem_manage_init+0x9c): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against symbol z_mapped_size' defined in ABS section in zephyr/zephyr_prebuilt.elf
collect2: error: ld returned 1 exit status

Basing on the following commits:
1454730 (mainline/master) Bluetooth: samples: hci_uart: Add overlays for nRF5340

@igallib86 igallib86 added the bug The issue is a bug, or the PR is fixing a bug label Feb 3, 2021
@galak
Copy link
Collaborator

galak commented Feb 3, 2021

What are you building that you see this error with?

@galak
Copy link
Collaborator

galak commented Feb 3, 2021

What platform, test/application, and which toolchain?

@nashif nashif added the priority: low Low impact/importance bug label Feb 3, 2021
@carlocaione carlocaione self-assigned this Feb 4, 2021
@carlocaione
Copy link
Collaborator

The problem arises when for example compiling with an SRAM base address very high in memory, i.e. CONFIG_SRAM_BASE_ADDRESS=0x2000880000. One possible solution here is to compile with -fPIC. I'll prepare a PR for that.

@nashif
Copy link
Member

nashif commented Feb 9, 2021

this should have been fixed by #32053 already, please confirm.

@igallib86
Copy link
Author

Hi @nashif , it works, thanks.

@kartben
Copy link
Collaborator

kartben commented Nov 6, 2023

A comment added to this issue on November 6, 2023 has been removed due to absolute violation of Zephyr's Code of Conduct // https://github.com/zephyrproject-rtos/zephyr/blob/main/CODE_OF_CONDUCT.md.
Original poster may apply for reinstatement by emailing [email protected], for which the Code of Conduct committee will discuss with the user and make a determination regarding the reinstatement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants