[cfe-dev] a clang-provided implementation of crtbegin/crtend

writeonce at midipix.org writeonce at midipix.org
Tue Apr 22 02:23:20 PDT 2014


On 04/22/2014 05:19 AM, writeonce at midipix.org wrote:
> On 04/22/2014 12:57 AM, "C. Bergström" wrote:
>> On 04/22/14 10:17 AM, writeonce at midipix.org wrote:
>>> Greetings,
>>>
>>> Given that clang has been self-hosting for quite some time now, I 
>>> wonder whether there have been any plans to provide a clang-native 
>>> source code for crtbegin/crtend?  I haven't seen any discussion of 
>>> this on the mailing list, and so wanted to know whether that would 
>>> be considered the territory of the libc implementaiton and/or the 
>>> operating system distribution.
>> If I'm not mistaken the NetBSD devs have "solved" this. Maybe one of 
>> them could reply, but possibly share more details of your exact goal. 
>> Without some objective - you may not get much interest or help
>>
>>
> Thanks for the tip and suggestion.  The relevant part of my project 
> entails an automated script for building a self-hosted llvm/clang 
> toolchain based on musl-libc, where all necessary patches and 
> adjustments are created on the fly.  The first pass (building the 
> toolchain using gcc) is complete (including lld), and now I would like 
> to generate crtbegin/crtend from source as the first step in pass two, 
> so that all final tools are built with it.




More information about the cfe-dev mailing list