This is an archive of the discontinued LLVM Phabricator instance.

[ELF] --sysroot: change sysrooted script to not fall back for an absolute path
ClosedPublic

Authored by MaskRay on Jun 24 2021, 7:27 PM.

Details

Summary

Modify the D13209 logic: for a script inside the sysroot, if an absolute path
does not exist, report an error instead of falling back to the path without the
sysroot prefix.

This matches GNU ld, which makes sense to me: we don't want to find an arbitrary
file in the host.

Diff Detail

Event Timeline

MaskRay created this revision.Jun 24 2021, 7:27 PM
MaskRay requested review of this revision.Jun 24 2021, 7:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2021, 7:27 PM
MaskRay retitled this revision from [ELF] --sysroot: change sysrooted file to not find an outside-sysroot file to [ELF] --sysroot: change sysrooted script to not fall back for an absolute path.Jun 24 2021, 7:31 PM
ikudrin accepted this revision.Jun 24 2021, 7:41 PM

LGTM

This revision is now accepted and ready to land.Jun 24 2021, 7:41 PM
This revision was landed with ongoing or failed builds.Jun 25 2021, 12:52 PM
This revision was automatically updated to reflect the committed changes.