1 |
On Sat, May 13, 2017 at 12:01:04PM +0200, Michał Górny wrote: |
2 |
> On nie, 2017-05-07 at 11:19 +0200, Jens Staal wrote: |
3 |
> > On Sun, May 07, 2017 at 09:27:41AM +0200, Michał Górny wrote: |
4 |
> > > On nie, 2017-05-07 at 08:05 +0200, Jens Staal wrote: |
5 |
> > > > - it would be really cool if an "official" custom crt package for |
6 |
> > > > llvm/clang could be in portage |
7 |
> > > > |
8 |
> > > |
9 |
> > > This is something I really look forward to adding. Any suggestion on |
10 |
> > > which crt implementation to use? |
11 |
> > > |
12 |
> > > I know that glibc provides crt1/i/n. Does musl provide them too, or does |
13 |
> > > it need a more complete crt* set? |
14 |
> > > |
15 |
> > > -- |
16 |
> > > Best regards, |
17 |
> > > Michał Górny |
18 |
> > |
19 |
> > musl itself does not provide crt* as far as I know, but I downloaded the |
20 |
> > relevant files from ELLCC, which is a musl/libc++ LLVM/clang toolchain |
21 |
> > |
22 |
> > http://ellcc.org/viewvc/svn/ellcc/trunk/libecc/src/musl/crt/ |
23 |
> > |
24 |
> > Those crt files originate from NetBSD and googling for crt |
25 |
> > implementations often point to the NetBSD variants as drop-in |
26 |
> > replacements of libgcc. |
27 |
> > |
28 |
> |
29 |
> To be honest, I'm not sure if this is complete enough as useful |
30 |
> replacement. For reference, the implementation submitted for compiler-rt |
31 |
> was a little larger, and still wasn't considered good enough [1]. |
32 |
> |
33 |
> [1]:https://reviews.llvm.org/D28791 |
34 |
> |
35 |
> -- |
36 |
> Best regards, |
37 |
> Michał Górny |
38 |
|
39 |
I just know that it works on my experimental system. Perhaps there are |
40 |
additional stuff needed for corner cases that I have not yet |
41 |
encountered... |
42 |
|
43 |
(hobbyist learning-by-doing so might be obvious things that I have |
44 |
missed) |
45 |
|
46 |
I have rebuilt @world several times (and llvm/clang), built llvm-patched linux on this gcc-free system. |