From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5E02C433F5 for ; Tue, 16 Nov 2021 19:25:44 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC1F06140A for ; Tue, 16 Nov 2021 19:25:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CC1F06140A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7D76E82F46; Tue, 16 Nov 2021 20:25:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="YF1BR5Gm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 588CD82F43; Tue, 16 Nov 2021 20:25:38 +0100 (CET) Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E1D3B82EC6 for ; Tue, 16 Nov 2021 20:25:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82d.google.com with SMTP id 8so248104qtx.5 for ; Tue, 16 Nov 2021 11:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tJjYH/9E4EnC5SId+cwl9WhRIHsPOqOrljyHqREe7eU=; b=YF1BR5GmCFQL0XZ6LFk21PuMviJwZzcz62AzOAL17+iTEebilbIkSlsORohgsQFgqo z0e+1XxAEhG0OMjiTDjLEhN1f0PB41Blnmac79nEmUQBmKY5I5PS6TfoEYOXCvhIkcbE DQjQuVjMH7HMxlhaqlJwv1VrszmYq16BoGU8w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tJjYH/9E4EnC5SId+cwl9WhRIHsPOqOrljyHqREe7eU=; b=rFUxHASS2WIkXJV8b/xpKYdg12Dog3ts9G7/DZvQWoyffcwZrLniufjgfbLaY8KYkH 3med0FUeW6MXVUYW8i0xVg5LU1pD1QCJBlkQ/F0YV6gM94vHT52Fyj1mBf6eyXatdYwe ycs1i5lJjetvrV3AbVYpmivPG860hZSdtxHblawE0KsaSw6ZhrRZmLb98UftwXHdJ+TX xo8rLsKqPB4UruRVhvHVxziqGNG6bDZHQAyL8B7dUACZHQFA6wM7zv8CR1vP7nDEf1xp mIY+5pJt0up6aFuyCTDGtQZPeF7rcmsL7RMjTi1OwH/rq9yWoI1NU1JaDVibklsXNr+k 4S0g== X-Gm-Message-State: AOAM5333Tb0tN9sqqYG/TKbL6g1uMou1PAbCBj22R+B8Q9CzeUJl/UQ8 7qHRmNaPAprxxrHeXgiGNXYWDw== X-Google-Smtp-Source: ABdhPJxmh1uEh9WyTVYbWhnD6xpkeKY+Bvskk+DdHg6pAymJtnPR6lxR6wKUcfQPBwem0Wqv145jSg== X-Received: by 2002:ac8:7f02:: with SMTP id f2mr10006856qtk.147.1637090733697; Tue, 16 Nov 2021 11:25:33 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-c5ad-ec44-3eaa-133f.res6.spectrum.com. [2603:6081:7b01:cbda:c5ad:ec44:3eaa:133f]) by smtp.gmail.com with ESMTPSA id p10sm6202428qtw.97.2021.11.16.11.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 11:25:32 -0800 (PST) Date: Tue, 16 Nov 2021 14:25:30 -0500 From: Tom Rini To: Alistair Delva Cc: u-boot@lists.denx.de, David Brazdil , Scott Wood Subject: Re: [PATCH] arm64: relocate-rela: Add support for ld.lld Message-ID: <20211116192530.GH24579@bill-the-cat> References: <20211020213134.7534-1-adelva@google.com> <20211020213134.7534-4-adelva@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FgUXPK9Pc0n2IByl" Content-Disposition: inline In-Reply-To: <20211020213134.7534-4-adelva@google.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --FgUXPK9Pc0n2IByl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 20, 2021 at 09:31:32PM +0000, Alistair Delva wrote: > Cap end of relocations by the binary size. >=20 > Linkers like to insert some auxiliary sections between .rela.dyn and > .bss_start. These sections don't make their way to the final binary, but > reloc_rela still tries to relocate them, resulting in attempted read > past the end of file. >=20 > When linking U-Boot with ld.lld, the STATIC_RELA feature (enabled by > default on arm64) breaks the build. After this patch, U-Boot can be > linked successfully with and without CONFIG_STATIC_RELA. >=20 > Originally-from: Elena Petrova > Signed-off-by: Alistair Delva > Cc: David Brazdil > Cc: Scott Wood > Cc: Tom Rini Applied to u-boot/master, thanks! --=20 Tom --FgUXPK9Pc0n2IByl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGUBaoACgkQFHw5/5Y0 tyzguQv/Zc8aODPqEWL8Zs8dFh2cRFkzifWJaKJYMSbm+f8AEwVSKcphTZiGMX4H xwjGQ+AtEb27PQhrdkXrFP4o+GToftjg+8CRHgv/wSTLS02yG8niivc0ewufkWaz wCOGcH2zojhKPHPSKZAUi+ZON37yexXXp5hBn64ov4xha3Ma4Kx9cbqVK5tAVELG VSuDvjJoQCPyJ8IvyPPBlNoJ7LbomOh1toBX8WcI/Ro5EY1W3R5qrpHodAfP9ncp 3zkdZ+ZJfgPWL0Lv8IhjBXtb6cyh0r9CQDlnhGXARfii34D59w7z7Q2QFq8KmgPf qN12goEGBUZmw+HJvASSEyWMfM4J5RHa/FQejZTqRaMZZ5G0u2xr6gjRlyeGvJhF emlkFFcUnVmNePCgJqqdDcCtRX5whp//T6wqf5D7h5B2RTcf69MX2s8KvVk8Uo3M a6NiEEkJ5Kvl8WlL+mbSv4aoyWGJo4dIJvjb5nrAKzIYGAjVI+4BAOdNLtIzPtUx v+QLPmna =s9Ja -----END PGP SIGNATURE----- --FgUXPK9Pc0n2IByl--