<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I've implemented crtbegin.o/crtend.o as part of compiler-rt inĀ <a href="https://reviews.llvm.org/D28791">https://reviews.llvm.org/D28791</a>, but there has been pushback on that change and it never got merged. Ultimately, I ended up implementing support for emitting __dso_handle symbol in lld which is the only part of crtbegin.o we need on our platform (Fuchsia) and that way we avoided the need for crtbegin.o/crtend.o altogether. On other platforms such as yours, you might still need these. You can either reuse the ones fromĀ <a href="https://reviews.llvm.org/D28791">https://reviews.llvm.org/D28791</a> or find a different ones which will satisfy your requirements for licensing, etc.</div><div dir="ltr"><br></div><div dir="ltr">To get them picked up by the linker, you'll need to either place these into one of the default locations e.g. <sysroot>/usr/local/lib or explicitly specify the location using the -L flag.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Oct 14, 2018 at 4:23 PM Franz Fehringer via libcxx-dev <<a href="mailto:libcxx-dev@lists.llvm.org">libcxx-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear libcxx community,<br>
<br>
On Ubuntu 16.04 is it possible to compile and use libcxx (and clang)<br>
without any dependence on gcc?<br>
Part of this effort would be to use alternate crtbegin.o / crtend.o<br>
With google i found both .s (assembler) and .c (C) versions of these<br>
artifacts, are there any which can be ued and what needs to be done for<br>
them to get picked up in the clang / lld link?<br>
<br>
Best regards<br>
<br>
Franz<br>
<br>
_______________________________________________<br>
libcxx-dev mailing list<br>
<a href="mailto:libcxx-dev@lists.llvm.org" target="_blank">libcxx-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev</a><br>
</blockquote></div>