Skip to content

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
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

2 participants