Skip to content

Fix resolving script inputs path when sysroot is specified#791

Merged
quic-seaswara merged 1 commit intoqualcomm:mainfrom
parth-07:SysrootScriptInputs
Feb 9, 2026
Merged

Fix resolving script inputs path when sysroot is specified#791
quic-seaswara merged 1 commit intoqualcomm:mainfrom
parth-07:SysrootScriptInputs

Conversation

@parth-07
Copy link
Contributor

@parth-07 parth-07 commented Feb 6, 2026

This commit fix the behavior of searching script inputs such that
if the script input is found in the specified absolute / relative path,
then the sysroot is not used to find the script. This change is done to
make to eld behavior consistent with the other major linkers (such as bfd).

Resolves #786

@parth-07 parth-07 force-pushed the SysrootScriptInputs branch from 8ea55c6 to 359f035 Compare February 6, 2026 08:45
Copy link
Contributor

@quic-seaswara quic-seaswara left a comment

Choose a reason for hiding this comment

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

reviewed

This commit fix the behavior of searching script inputs such that
if the script input is found in the specified absolute / relative path,
then the sysroot is not used to find the script. This change is done to
make to eld behavior consistent with the other major linkers (such as bfd).

Resolves qualcomm#786

Signed-off-by: Parth Arora <partaror@qti.qualcomm.com>
@parth-07 parth-07 force-pushed the SysrootScriptInputs branch from 359f035 to d31a5ce Compare February 9, 2026 10:52
@partaror partaror changed the title Avoid using sysroot for scripts inputs with absolute paths Fix resolving script inputs path when sysroot is specified Feb 9, 2026
@quic-seaswara quic-seaswara merged commit e58583e into qualcomm:main Feb 9, 2026
3 checks passed
@jonathonpenix
Copy link
Contributor

jonathonpenix commented Feb 10, 2026

Thanks for fixing this @parth-07!

Just a heads up, I think we're seeing Windows failures with this over in cpullvm--it's a WIP branch, but see ex: https://github.com/qualcomm/cpullvm-toolchain/actions/runs/21848478483/job/63049668083?pr=150

Looks like the eld Windows nightly is in progress, so I'll keep an eye on that too and see if the failure shows up there.

Edit: does seem eld's nightly is failing in the same way: https://github.com/qualcomm/eld/actions/runs/21849978400/job/63054152522

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.

eld looks for version scripts with an absolute path inside of the --sysroot dir

3 participants