From owner-freebsd-arm@freebsd.org Tue Jan 16 23:46:05 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 395AAEC0699; Tue, 16 Jan 2018 23:46:05 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (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 0441B732C4; Tue, 16 Jan 2018 23:46:05 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x234.google.com with SMTP id w14so6309951itc.3; Tue, 16 Jan 2018 15:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=qD0sjpKeUV+0hPGCQYkm2XkP8Nox8rPNNZWPtstU8q8=; b=tVZbUdTniKEUKv45fdy/wfT1gCC+m9gOlrhnSeP4Ivp0fkRZK1IbbWLjXLiYPcWn2n d3jz0i9sFhCKvXXK+Zl4h2MNI73qNO6bOFB0GXmAb1szH89paUdJIUyhmGOPDJbneM8a CXeNTQZG4ZzbELfb6hGvZg3Yabigeu3wmoUVL7TohNymO2eGKQj9AZ/4Iyrre38DUuOi 0lyJmgZeggAeKSclDifATm88DSzeud8CZ5lbXp2/8HTWV/bNBKaVpyzeWsjX6vUU5YHi WnoR5oc9X5/2urdH/eSAwjDUMsskE9W9a1bma79LBeHfj3FqiA3HEncrl7T9S1TIWqn7 RF6Q== 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:from:date:message-id:subject :to; bh=qD0sjpKeUV+0hPGCQYkm2XkP8Nox8rPNNZWPtstU8q8=; b=qEp+v5Qagk5U8cO6s+790t9IpDjQtYcjDHB7XTGVKK0HuyHe+fvKzQrwxKeC+cS7SQ vryL5ilg8QPpLU2Ib62sYhvtlUMOhyL+/JaiY2yJqUO2/Avv9v1OAPEYlbdfSy+j23oV hY8DpS/d9k8i0RGMYj6cSZATEVEonY3PtmalJ+GLOqP8VW1DrYDWV22tJX0zF9m31vzY Nu2ZfH4IK5W+WqMM9FVxmuFENKUha/fqujwbDf+zdFAH0hWP2PiWiPf6UolT9+0G5S9q h3lNfMWJqTeV3jhYaO79XhEJlqKOFGS7O9TnaiOyd1LRkwZewCBa89mH4U9f99zj2INY WZhg== X-Gm-Message-State: AKwxytfZ4vt3iWHz1bP54N00B2wGlKBNF/ybmwhVR7yZIOFhVzu+wFhe DtYcES6MLj1hQhLvZr5GBkmaWZysRMhGdrM3RQuWwkTv X-Google-Smtp-Source: ACJfBotjAC7gEorYQx4yD/B0uLOgrpFObSTCj7qt76yaQwUJR8M9xUcUEDUsubOQj1dlhsdELz6he2EYQlxPf2z/7Xk= X-Received: by 10.36.17.208 with SMTP id 199mr20146268itf.103.1516146364109; Tue, 16 Jan 2018 15:46:04 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.136.201 with HTTP; Tue, 16 Jan 2018 15:45:43 -0800 (PST) From: Ed Maste Date: Tue, 16 Jan 2018 18:45:43 -0500 X-Google-Sender-Auth: CgpOZgfw_BkbhayYeJAlKNo8VQA Message-ID: Subject: Migrating arm(v7) to LLD_BOOTSTRAP To: freebsd-toolchain@freebsd.org, "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" 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: Tue, 16 Jan 2018 23:46:05 -0000 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.