[cfe-dev] Clang builds a working Linux Kernel (Boots to RL5 with SMP, networking and X, self hosts)

David Chisnall theraven at sucs.org
Tue Oct 26 14:30:02 PDT 2010


On 26 Oct 2010, at 19:13, Erik Cederstrand wrote:

> I think the BSD folks may be interested. Which license covers SUN ld?
> 
> FreeBSD use GNU ld currently but don't like the GPLv3 license that binutils has switched to, so wew're at binutils v 2.15 (soon 2.17). gold has always been GPLv3. LLVM has llvm-ld, but there were problems with it last time I asked here (with native code generation, I think). There's a linker planned for the elftoolchain project, but it's still only a Trac ticket as far as I know.
> 
> I'd like to play with LTO for FreeBSD builds using Clang, but the options are limited as far as I can see.


Sun ld is CDDL, and I believe that the FreeBSD policy is still that CDDL stuff should only be used for optional parts of the base system.  Whether this includes developer tools is not clear.  OpenBSD has less strict requirements for developer tools than for the rest of the base system, but I'm not sure that FreeBSD is quite as relaxed.

That said, the version of GNU ld in the base system is quite old, and the alternatives are either GPLv3 or CDDL, so I'm not sure which is less unattractive to the FreeBSD team.  The third alternative is to write a new linker, which is a possibility if someone's willing to pay for it, but probably not something anyone (even me) would do entirely for fun.

David

-- Sent from my Difference Engine







More information about the cfe-dev mailing list