This is an archive of the discontinued LLVM Phabricator instance.

[lld] Check errors from expanding response files
ClosedPublic

Authored by hans on Nov 4 2022, 8:47 PM.

Details

Summary

Previously the response file expansion code would print the error, but lld would not exit, which was odd.

lld does response file expansion in the different drivers, but it's also done in main() first, so it's enough to check there.

By checking for these errors we would have caught when D136090 introduced a bug that made lld print errors for response files which contained "-rpath @foo".

Diff Detail

Event Timeline

hans created this revision.Nov 4 2022, 8:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2022, 8:47 PM
Herald added a subscriber: emaste. · View Herald Transcript
hans requested review of this revision.Nov 4 2022, 8:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2022, 8:47 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
sepavloff accepted this revision.Nov 4 2022, 9:33 PM

LGTM.

This revision is now accepted and ready to land.Nov 4 2022, 9:33 PM
MaskRay accepted this revision.Nov 4 2022, 9:35 PM

LGTM.

lld/test/ELF/basic.s
221

For newer tests we use ## for non-RUN non-CHECK comments.

224
thakis accepted this revision.Nov 5 2022, 4:44 AM

Thanks!

hans closed this revision.Nov 7 2022, 9:35 AM

hans mentioned this in rG19a7939404a3: [lld] Check errors from expanding response files.

That was the commit. Seems I failed to spell "Differential" correctly.