Skip to content

Update linker detection for ELD #14746

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

quic-k
Copy link
Contributor

@quic-k quic-k commented Jun 25, 2025

ELD updated the output for --version flag qualcomm/eld#156 this commit updates detection for new output.

ELD updated the output for `--version` flag qualcomm/eld#156
this commit updates detection for new output.

Signed-off-by: Kushal Pal <[email protected]>
@quic-k quic-k requested a review from jpakkane as a code owner June 25, 2025 05:29
@@ -166,7 +166,7 @@ def guess_nix_linker(env: 'Environment', compiler: T.List[str], comp_class: T.Ty

linker = lld_cls(
compiler, for_machine, comp_class.LINKER_PREFIX, override, system=system, version=v)
elif 'Hexagon' in o and 'LLVM' in o:
elif o.startswith("eld"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this make the detection fail for the old output?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but eld detection was recently added in meson, this should be fine right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the connection between the fact that eld support in Meson is recent with requiring the latest version of eld to be installed for the Meson support to work. I'm not familiar with how eld is distributed and I didn't find any release information on the linked github project, however, I suppose support for more than (literally) last week git master is desirable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there's a released version of eld that only works with the old detection method we need to check both. I'm happy to put the o.startswith(..) first

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ELD was open sourced recently (April 2025), and does not have any official release yet,
So there is no need to worry about backwards compatibility as the first official release version is yet to come

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants