This is an archive of the discontinued LLVM Phabricator instance.

[Driver][Solaris] -r: imply -nostdlib like GCC
ClosedPublic

Authored by brad on Apr 24 2022, 9:15 PM.

Details

Diff Detail

Event Timeline

brad created this revision.Apr 24 2022, 9:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2022, 9:15 PM
brad requested review of this revision.Apr 24 2022, 9:15 PM
MaskRay added inline comments.Apr 25 2022, 12:13 AM
clang/test/Driver/solaris-ld.c
115

It's worth testing that there are some "-L

brad updated this revision to Diff 424835.Apr 25 2022, 12:48 AM

Update test

MaskRay accepted this revision.Apr 25 2022, 12:52 AM

LGTM.

clang/lib/Driver/ToolChains/Solaris.cpp
168

This appears to fix another bug.

This revision is now accepted and ready to land.Apr 25 2022, 12:52 AM
brad added inline comments.Apr 25 2022, 12:58 AM
clang/lib/Driver/ToolChains/Solaris.cpp
168

This appears to fix another bug.

It appears that crtn.o should be handled in the same manner as crti.o further up in Solaris.cpp.

https://blogs.oracle.com/solaris/post/new-crt-objects-or-what-are-crt-objects

This revision was landed with ongoing or failed builds.Apr 27 2022, 9:20 PM
This revision was automatically updated to reflect the committed changes.