This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Link with crtbeginS.o/crtendS.o on Solaris
AbandonedPublic

Authored by ro on Aug 17 2023, 12:41 PM.

Details

Reviewers
MaskRay
Summary

clang doesn't currently use crtbeginS.o and crtendS.o on Solaris with -pie or -shared. This patch fixes that. It depends on D158206 for the IsPIE definition.

Tested on amd64-pc-solaris2.11, sparcv9-sun-solaris2.11, and x86_64-pc-linux-gnu.

Both this one and D158206 might be candidates for LLVM 17.

Diff Detail

Event Timeline

ro created this revision.Aug 17 2023, 12:41 PM
ro requested review of this revision.Aug 17 2023, 12:41 PM