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

Linker generator broken for nRF devices #72673

Open
tejlmand opened this issue May 13, 2024 · 0 comments
Open

Linker generator broken for nRF devices #72673

tejlmand opened this issue May 13, 2024 · 0 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: medium Medium impact/importance bug

Comments

@tejlmand
Copy link
Collaborator

tejlmand commented May 13, 2024

Describe the bug
The following PR #71590
broke support for CONFIG_CMAKE_LINKER_GENERATOR=y and thereby also broke support for ARM Compiler 6 for all Nordic nRF devices.

To Reproduce
Steps to reproduce the behavior:

  1. cmake -GNinja -Bbuild -DBOARD=nrf52840dk/nrf52840 samples/hello_world/ -DCONFIG_CMAKE_LINKER_GENERATOR=y
  2. ninja -Cbuild
  3. See error
/opt/zephyr-sdk-0.16.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a(reset.S.obj): in function `__start':
/projects/github/ncs/zephyr/arch/arm/core/cortex_m/reset.S:97: undefined reference to `z_arm_platform_init'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Expected behavior
A successful build

Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)

Possible solutions

  • ld scripts, support use of PROVIDE for the generator
  • scatter files, steering file can possible be used to direct symbol to correct implementation
@tejlmand tejlmand added bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug labels May 13, 2024
@henrikbrixandersen henrikbrixandersen added the platform: nRF Nordic nRFx label May 13, 2024
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 platform: nRF Nordic nRFx priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

3 participants