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 379D2C433EF for ; Mon, 25 Oct 2021 18:17:42 +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 4D2CE604AC for ; Mon, 25 Oct 2021 18:17:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4D2CE604AC 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 A39BC80607; Mon, 25 Oct 2021 20:17:38 +0200 (CEST) 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="Vlu/FZrf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 77AE78020E; Mon, 25 Oct 2021 20:17:36 +0200 (CEST) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 9A45B81F0B for ; Mon, 25 Oct 2021 20:17:32 +0200 (CEST) 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-x832.google.com with SMTP id t2so11091131qtn.12 for ; Mon, 25 Oct 2021 11:17:32 -0700 (PDT) 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=CTOAapX/a/IRwzrM+NlMoV7qtHh7locZyOdGvqOGjFE=; b=Vlu/FZrfjZixJI2EsWrdElXr7++WvvuYYmjZqradAbzpkPZaGQjNJwtY/FpYjQ8jLn xxlSNF5skE6dPhmuIi7R7k5w9YMzhjQtrPGqkbJPHr76DQnQb5dVNFzLyOyYpW/+qc0j Ti6k1AtQ1cSyRw4HLqCOICswFnhNmg/pXgDqg= 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=CTOAapX/a/IRwzrM+NlMoV7qtHh7locZyOdGvqOGjFE=; b=p5eCM+TbeBe6uBHYKUmBzAeFwl+0GiMjP7sQDXJQRkEctwIFS+9/82h3JyqM0IYc5f 55uM2a9XqSBytJXyR+515IPkxQl4DNbp4aHHma3f93l3ew1PF92yMBihuoDdNmEBphmd vcsx+AGdhlrhY2FmzDoDfC4TZGyQCyf4J42N9nBWWbX7+6svlw6PFPI3/cmqx03ZqoCL xNuJ45duW3ar4uKw3gCs3QtakMts+0iyrhvnVcaZG0Y2DZI0CuS8UHJkzaZR7myp/nW7 wQEUW7qEzSGm4Uz1izLTZhEETrHU8rCIro8GmITIQhwzdreYlQZpr9E49JuIghg2uJxg jiQg== X-Gm-Message-State: AOAM532eW6P3ylUF8+wyiJLbQ0IuweEkPUA8Kq4Ho3EFHtUg6g3k1Yhi lDhLt3XGS/M39cpeJ8Yb9FLz0g== X-Google-Smtp-Source: ABdhPJxDr2aWVnLbrSFHi2Il3h878h2TwkJTkZeosLxbtW9iup+G3ndI07nC3pnn9taF7ZmQDShRLw== X-Received: by 2002:ac8:57ca:: with SMTP id w10mr19075621qta.81.1635185851365; Mon, 25 Oct 2021 11:17:31 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-c992-6a97-7d08-4b0c.res6.spectrum.com. [2603:6081:7b01:cbda:c992:6a97:7d08:4b0c]) by smtp.gmail.com with ESMTPSA id u189sm8818554qkh.14.2021.10.25.11.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 11:17:30 -0700 (PDT) Date: Mon, 25 Oct 2021 14:17:28 -0400 From: Tom Rini To: Alistair Delva Cc: u-boot@lists.denx.de, David Brazdil Subject: Re: [PATCH] arm64: relocate-rela: Add support for ld.lld Message-ID: <20211025181728.GE3577824@bill-the-cat> References: <20211020213134.7534-1-adelva@google.com> <20211020213134.7534-4-adelva@google.com> <20211025133049.GS3577824@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YBGzgpgHAney5ErF" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 --YBGzgpgHAney5ErF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 25, 2021 at 10:46:32AM -0700, Alistair Delva wrote: > -Scott's ancient non-functioning email address >=20 > Hi Tom, >=20 > On Mon, Oct 25, 2021 at 6:30 AM Tom Rini wrote: > > > > On Wed, Oct 20, 2021 at 09:31:32PM +0000, Alistair Delva wrote: > > > > > Cap end of relocations by the binary size. > > > > > > 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. > > > > > > 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. > > > > > > Originally-from: Elena Petrova > > > Signed-off-by: Alistair Delva > > > Cc: David Brazdil > > > Cc: Scott Wood > > > Cc: Tom Rini > > > > Thanks for the patch. Do you have any other changes for LLVM/LLDB > > support on arm64 platforms? I think I've had a few stumbles whenever > > I've tried and not been able to cycle back to them. >=20 > I think the patches I posted are enough to get U-Boot to build with > LLVM LD for QEMU targets on arm64 and x86_64, but I have some other > build problems to work through on physical device targets like > rockchip. >=20 > Oddly, the arm64 binaries seem to be booting up (as far as we can see > in a debugger), but there's no serial output, so there's still some > work to do. >=20 > I'll keep upstreaming what we find. Our CI system is over here: > https://ci.android.com/builds/branches/aosp_u-boot-mainline/grid? > (using Clang but still ld.bfd for now) OK, thanks! I would like to see this get to the point of building + booting, so I can hopefully get a platform or two both in CI and my local HW CI loop building with clang as well. --=20 Tom --YBGzgpgHAney5ErF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmF29LEACgkQFHw5/5Y0 tyw7Bgv8CVf4d9eEoo0tiQdnFTeeJhloKK5n9RgaP58eDEEK2hhTxREe/n9tRltB LbcbJA04tWyWOqvhEhDJ4EAT9HBf5l5Xsv8kpmBk8Qa7MLqC/faGeW0q3hfd3bx+ WwYVSylRBPQ7UipGa+FkdJDBUvgDhep54c9a68qDqa9ar/qom25jH91L5YG7aVg0 NirqxeHWaZN8QwaHK2z5Odp6+tAW2jEP4LaCNTYa1kVUEU4tRu08Fmr2Cdqo+gfd YRQlEo0AgV8qeRKrZ/SFT0g9F+nr38jJuyIQc8rY7nvPCBWMBtS4FOvotPiM7/Ob Ybv5ysCtdVOD4Wgkuqbm/kT5BN2ro1Eaiv9VsBBsDPJ56mSdzvWYJlMQCbVaGf7T mG3ya/Q5wVdB789PtkZhlJD86y1fwJH1Lu/8VM70PI/lwryOwhANdmd8Vz2Gc75t ZlflHtirG+innSHJrOBZIyeU1qInA326RL+9e1nvbwv/Mjo8e9mlVHV/zjD+B0da SBRGSKYi =lJE3 -----END PGP SIGNATURE----- --YBGzgpgHAney5ErF--