Skip to content

toolchain: llvm: add ELD (ld.eld) linker support#103778

Open
quic-areg wants to merge 1 commit intozephyrproject-rtos:mainfrom
quic-areg:eld-linker
Open

toolchain: llvm: add ELD (ld.eld) linker support#103778
quic-areg wants to merge 1 commit intozephyrproject-rtos:mainfrom
quic-areg:eld-linker

Conversation

@quic-areg
Copy link

ELD (“Embedded Linker”) is Qualcomm's open source, LLVM-based, GNU-compatible linker. It can be selected as an alternative to LLD when building Zephyr with the LLVM toolchain.

This change adds a CONFIG_LLVM_USE_ELD Kconfig option and the required CMake integration to locate ld.eld and use it during linking. A minimum ELD version is enforced (22.0+) to ensure required linker-script features are available.

ELD repository: https://github.com/qualcomm/eld
ELD docs: https://qualcomm.github.io/eld/

Prebuilt ELD toolchain archives are published by the ELD nightly CI runs eg: https://github.com/qualcomm/eld/actions/runs/21816037223

ELD (“Embedded Linker”) is Qualcomm's open source, LLVM-based,
GNU-compatible linker. It can be selected as an alternative to LLD when
building Zephyr with the LLVM toolchain.

This change adds a CONFIG_LLVM_USE_ELD Kconfig option and the required
CMake integration to locate ld.eld and use it during linking. A minimum ELD
version is enforced (22.0+) to ensure required linker-script features are
available.

ELD repository: https://github.com/qualcomm/eld
ELD docs: https://qualcomm.github.io/eld/

Prebuilt ELD toolchain archives are published by the ELD nightly CI runs
eg: https://github.com/qualcomm/eld/actions/runs/21816037223

Signed-off-by: Adarsha Regmi <aregmi@qti.qualcomm.com>
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Hello @quic-areg, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment