From owner-freebsd-toolchain@freebsd.org Tue Sep 27 15:45:24 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AAE07BEC1F4 for ; Tue, 27 Sep 2016 15:45:24 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7537E7FA for ; Tue, 27 Sep 2016 15:45:24 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x230.google.com with SMTP id e66so19791593iod.1 for ; Tue, 27 Sep 2016 08:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=aXEwnERf8cIb5CJermpoFhdCqOnOcSM+ILGRSEWo8WU=; b=mgY+errDPoPCGfMVQr2ZOGrC8ygH5AxWpztrFK1lszMdJAbRVfEKJ6Q82hl0x73348 y7Rc1zF34Mo/e0d/jCIx8RW5uyB2sckv2cjaSSc9IIQkR9yNmrtf+A4S6d2As7Rzx2o3 sx5oP9lAcirJiq7juDEpmbeakE3sc4unOcze2RmcP2lkqXgAFUUIFk1121SYzYucwYEj y+19uIG63Kr8QExv5yNHYJGTTyMT6pMAG9uIdqOh/inYyCYx+9Ynu0YaZF9yV9tcpdPx 9M59snFTV/9vM7+3vvAM1Dgwv5X5jartpOTDtwZ9YAwBRTyWqVOdvLTju/7DmDeJFqvF QHgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=aXEwnERf8cIb5CJermpoFhdCqOnOcSM+ILGRSEWo8WU=; b=D4+NP7EWsrrq+Kn2HsbcKK2jum4dQSk3KzpqpmWrBp9xJGLckwv/n/PsAxxASMYZz9 ddWCvho1u0onmDn+tCIwxb1VD6yZQ/UzBVa35TI1JWRYuL+6MA4xImUsg2HrlyGoHBrj KkyoR43K9Jv8EeVSiZ0HfvN/dkst60umxN0X3EZRM4EJZFxvGCJI5bHKRLVRLv0oZjSN OobUwYeRCJSGqqnmeXmcOO9AVVzyo0pe1hu0ECFpeVqMDeH6L/INCpykKqlYJNZXTvDr Wl5pLzFCvlFFxkYQzr5MgFW7kvYUuoKi/5q68+oTXYHK+q+5jtbKKelytks9nGXXF8LW eiQA== X-Gm-Message-State: AA6/9RnQKIbx+tIydXSuCdAuhikosDwF0okijqsRTEydOGy39D4NSBqDzHGQfgkCp2/qcig75qB7sslkwauitA== X-Received: by 10.107.15.42 with SMTP id x42mr29966930ioi.219.1474991123703; Tue, 27 Sep 2016 08:45:23 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.10.215 with HTTP; Tue, 27 Sep 2016 08:45:03 -0700 (PDT) In-Reply-To: References: From: Ed Maste Date: Tue, 27 Sep 2016 11:45:03 -0400 X-Google-Sender-Auth: bJ-qd2MB1vWE1PGIkKs-9Ca0zYQ Message-ID: Subject: Re: Update on using LLVM's lld linker in the FreeBSD base system To: "freebsd-toolchain@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2016 15:45:24 -0000 On 1 August 2016 at 17:40, Ed Maste wrote: > Over the past year or so I have been investigating the state of LLVM's > lld linker for use in the FreeBSD base system, to see if it could be > used as FreeBSD's system linker. A quick update: most of the required changes have now made it into LLD, and I'm currently testing with an unmodified upstream LLD. I can now build world and kernel with an out-of-tree LLD (setting XLD=...), when using these src.conf knobs: WITHOUT_BINUTILS WITHOUT_BINUTILS_BOOTSTRAP WITHOUT_BOOT WITHOUT_RESCUE There's some upstream work in progress that may address the the boot issue, or at least part of it. Rescue will still be left for later. LLD 3.9 will be available once dim@'s clang390-import branch is merged to FreeBSD HEAD. Although it's a bit older than the LLD HEAD snapshot I've been using for my testing, it will facilitate further testing and experimentation with LLD (e.g. testing ports builds).