From owner-freebsd-arm@freebsd.org Wed Jan 17 01:41:26 2018 Return-Path: Delivered-To: freebsd-arm@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 8819EE70D70 for ; Wed, 17 Jan 2018 01:41:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 1914576849 for ; Wed, 17 Jan 2018 01:41:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-wm0-x233.google.com with SMTP id t74so12079678wme.3 for ; Tue, 16 Jan 2018 17:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=OiiSafIBcY/KuIdJyiwLR62Tvng9xY2iqGZuV8i6eFY=; b=uFOJ6HULS4hcmwLA8auWFeslxpVoW4MZbQTWgmXRCISfTo7jIPuvGUWXUEeO37rxrU BqzDS2wXsmWJQqwvAQX/jB36hcR6Eg/+vcpC2vtk44ceXKQPaPp5miLU7Zw9TOaZ+JmC r7qEHakEdlW9v57z+WEbNI6xh7S+eNCQNWqTFLDOpDIJiizyCtDKMlTo9gTpeYUH2yxp QdBr/lYrPF4TrXHfXDjKlECJrcJ2qmePlCTOeElo4gJQ9jUVdJsCx00agft96/NV63F7 2mk8HdTMf8bWq82QABltjT0L8hODXbtoQNB5eSWY6DQs8I585Ujyk+f5k5/HhEhoPO9P rBzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=OiiSafIBcY/KuIdJyiwLR62Tvng9xY2iqGZuV8i6eFY=; b=ZbAV0Oe7X0haAhMKQx7VBI1+P56eQofqJ4BTP6GwwHQMtxNaarkVTcQM1vm5IOmJ3r 4+2T4giT0InIKFMN+SIlOzK2L6A6DsqFTIiUVd04UxKTvdsOIjz7Fx/yP+sy/8PTc5jk ia4oa2lQg1RGZqS0Gw9wQfKzHUP8bWjTDyq2+vo5DiUVog9MJCHm5VzpeeNX0UVs29oH PO+HngHC+GT3UO0jLXYALJIr8yIPcoEHjk9iDovCs+JQh3trhqp2hQKXIiM0Mxko5Evo D8V5FNaLHYcnrxNtUa/92PvlpAL8yAMz9hjmZMUeqlNeINsK4wERpS+FJJxnJtxb0g5Y lKnA== X-Gm-Message-State: AKwxytcyLcvLKa4B4d7/i5EQHl9OmNml+XjMWsZtSeLTwYQXAEFNiYBv GXmdG91oqhM+kNCmCekKogIpl0T6u0b9lqJwAJYMog== X-Google-Smtp-Source: ACJfBoteHRHKgWhb6Q67FNj0tv3K7ZEmxlmfeTg7D7GCdndcfXX2Dt4fQ983D74jk0CGHNoWRc99ASbbB6QEH83T89k= X-Received: by 10.80.171.165 with SMTP id u34mr458604edc.167.1516153283825; Tue, 16 Jan 2018 17:41:23 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.80.195.12 with HTTP; Tue, 16 Jan 2018 17:41:23 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: References: From: Warner Losh Date: Tue, 16 Jan 2018 18:41:23 -0700 X-Google-Sender-Auth: c-ycNajNB8QN-KHqR_TlJhIjhN4 Message-ID: Subject: Re: Migrating arm(v7) to LLD_BOOTSTRAP To: Ed Maste Cc: "freebsd-toolchain@FreeBSD.org" , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 01:41:26 -0000 On Tue, Jan 16, 2018 at 4:45 PM, Ed Maste wrote: > With the update to Clang/LLVM/lld 6.0.0 I believe lld is nearly ready > to be used as the system linker for armv7, and I plan to enable > LLD_BOOTSTRAP by default after a couple of WIP patches land and after > a little more testing. This may happen a week or two from now. This > should have little impact on port builds, because /usr/bin/ld will > still be GNU ld.bfd (although there may be some unexpected fallout). > > I expect to enable LLD_IS_LD by default a little later, and > /usr/bin/ld will then be lld. This is the same path we're taking with > amd64. > > lld currently does not support architectures prior to armv7, and fails > with some combination of these errors when I try to use it for > arm{,v5,v6,eb}: > > ld: error: lld uses blx instruction, no object with architecture > supporting feature detected. > ld: error: lld uses extended branch encoding, no object with > architecture supporting feature detected. > ld: error: lld may use movt/movw, no object with architecture > supporting feature detected. > > I expect this will be addressed in a future version of lld. > At least some of that is due to the gap size that's defined for all of ARM. With a smaller gap size, the trampolines will work better on older ARM gear.... Warner