From owner-freebsd-toolchain@freebsd.org Wed Jan 17 05:35:14 2018 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 688A5E7C8A7; Wed, 17 Jan 2018 05:35:14 +0000 (UTC) (envelope-from melounmichal@gmail.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 0A1357D83F; Wed, 17 Jan 2018 05:35:14 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id 143so12577635wma.5; Tue, 16 Jan 2018 21:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sMUvU8TKozpc8LlZXMVrxezwq6Vnx1Qqkpqe3ikWlYA=; b=HV3uBxLnW/lIGzkXSuiwpllYZ2BXsWR/ap9FS+vLzTroFpUl3wGanUsY08f5eGqbyk e/fLprOgHNWO1YF/c9DgD5E2S+z7dfiD6RsWWo4NBpfdBSFxpVtJAsuwp/KmBZyCpsLu y3zihaUQSjM3K9NG/GZ1gP/sgBi919acVOff+GbfMHOxpoOVT+HsN5cu+0SSw9HlZsIA YV3F3iNxRGzTCTwUlNJe7rDEC18PmglU+4/GYKoW8apGH7mg/7T9zpguMeq1tjTs/DQe DOv76c3bNxkYcSUm4/jogzJBsLaRQwMxY+V1yhcDq7HNb1dxodGY+8ZZBxDtpDd7DTQB WWUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:to:cc:references :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=sMUvU8TKozpc8LlZXMVrxezwq6Vnx1Qqkpqe3ikWlYA=; b=XfeCV/6hjif/l2PmXSLNtMO28zasx2e+AzskqTgrKvufnmC3EIYDT8s+1PVbv3nSPk SOZAjtp5ee7cqNIQHrSvHlqvd79RD1O3vPbVUbO47KYuuykuSdNAPlm60cFXPGR5em79 UsiTgCFLzxk62agCOZBssbYuH2MBZdZWhds3laTGB/TAInvX83YFJ/JfKfbZK5htKW2v fYra5EhvmXEpLo0w/Fp9ayvqx76hvXat/BBuBG32CfMzyZ6j/0ZAFjpn7mYpVgxWMKTU M/au3O5w1NAu3vw5UOU+DX1D0EeGBDVk6/ZC0eomHQPyc6ATYkyynC3o5tpo6TRoasr4 s2GQ== X-Gm-Message-State: AKwxytfTW0W8X0+w8ba+aOHpXWynrFIUR51dduAFYO2pDoXO6tB4LpgB ydPwit7Uc/LEijW7bd2tQvpFvy7b X-Google-Smtp-Source: ACJfBou4PNl9ymPgnDuqyqCS8uDDQACBIONb0RniVaraX+DxHzeZ3jZp6zDtHq1GaAfKOBY8UB2Cdw== X-Received: by 10.80.136.85 with SMTP id c21mr1161126edc.259.1516167312253; Tue, 16 Jan 2018 21:35:12 -0800 (PST) Received: from [88.208.79.100] (halouny.humusoft.cz. [88.208.79.100]) by smtp.gmail.com with ESMTPSA id f16sm2220452edj.65.2018.01.16.21.35.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 21:35:11 -0800 (PST) From: Michal Meloun X-Google-Original-From: Michal Meloun Reply-To: meloun.michal@gmail.com Subject: Re: Migrating arm(v7) to LLD_BOOTSTRAP To: Warner Losh , Ed Maste Cc: "freebsd-arm@freebsd.org" , "freebsd-toolchain@FreeBSD.org" References: Message-ID: Date: Wed, 17 Jan 2018 06:35:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2018 05:35:14 -0000 On 17.01.2018 2:41, Warner Losh wrote: > 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. But this means that we can not use lld for kernel module linking. (assuming that lld can emits movt/movw with attached relocation). To be more exact, not until we change format of kernel modules from (many years outdated, -Bshareable without -fPIC) shared library format to fully supported "combined object file" format. Michal > >> 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 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >