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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D8F45C433FE for ; Wed, 23 Nov 2022 13:45:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 529AE851E1; Wed, 23 Nov 2022 14:45:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (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="OfZYLI6X"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 184A7851E1; Wed, 23 Nov 2022 14:45:18 +0100 (CET) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (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 2EECA84D70 for ; Wed, 23 Nov 2022 14:45:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82e.google.com with SMTP id e15so11211330qts.1 for ; Wed, 23 Nov 2022 05:45:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=dYzF77/JTKUrjcdjidlc3irsuMFk5h+FvX8/4fAHbhg=; b=OfZYLI6XWxcSQMygT1YP4MNZ0jCEDikK1J8I/X3xCxZHcsbHcFpNGi2OxPllS6HKaM gBy4SLLhn0A+1kFh0vjefjC+VSFEngP0GJoYYe5/FMfvVV4LKnM+Snp2y1R6E9sl9O+m m31xeiQDgLJpjSXGwXY1CRwvgMctF3H0rkXOY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dYzF77/JTKUrjcdjidlc3irsuMFk5h+FvX8/4fAHbhg=; b=dXrX2v7gN+n7HdZ55mu0VXixSPBRUjkhwPda73E5AHg2TJXbD6OVSkymksUv9YUvbh e7S8V0QNVeFZmB8/dH9IObujB1Yg+2zdm2aosKnhZvA5+nVe1SLFeLXkrRZKQ9K1nT0i uriRMXgMpeEg0uTTU/T5zfUzxmiFtvVaGZ2CVNgQBCNzM+K4QOepHvLKv2R3VvrwVZ/U kWrsnRqBhNSVoUMozD0pxB00NhprPWXfmgYqyFaDh/BKGEMayQNr3Q2uHaEGX9aLtV48 wLjD49jLZTAub0j9CsJh50rDvOhVEjAS9cSsXCMZuCS7VP09RxI9P45VvDPQPmd9584h wvBQ== X-Gm-Message-State: ANoB5pkKJrADJCESx9wouvrl2djK5QyNBKAy24ZvljejjPIdZOzIhu2S +RWhBeqORmjjmKTSbPnqpK5G7Q== X-Google-Smtp-Source: AA0mqf6n40il2lfwDXTNoNZ+1OmIQjX6gIJDYATwXZ9vZ9rx8bA6gm8MmK9GsMa0bfhqtXSAcdThLQ== X-Received: by 2002:a05:622a:5c06:b0:3a5:a41:728e with SMTP id gd6-20020a05622a5c0600b003a50a41728emr26270384qtb.46.1669211113941; Wed, 23 Nov 2022 05:45:13 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-e0b4-8d94-202b-686a.res6.spectrum.com. [2603:6081:7b00:6400:e0b4:8d94:202b:686a]) by smtp.gmail.com with ESMTPSA id z15-20020a05622a124f00b003a51e6b6c95sm9832173qtx.14.2022.11.23.05.45.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 05:45:13 -0800 (PST) Date: Wed, 23 Nov 2022 08:45:11 -0500 From: Tom Rini To: Tony Dinh Cc: U-Boot Mailing List Subject: Re: [PATCH 5/6] pogo_v4: Disable LTO Message-ID: <20221123134511.GE7282@bill-the-cat> References: <20221122173158.2231821-1-trini@konsulko.com> <20221122173158.2231821-5-trini@konsulko.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="g+nE7Lp8ucACtfsu" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean --g+nE7Lp8ucACtfsu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 22, 2022 at 01:09:55PM -0800, Tony Dinh wrote: > Resend to include the mailing list! >=20 > Tony >=20 > On Tue, Nov 22, 2022 at 11:58 AM Tony Dinh wrote: > > > > Hi Tom, > > > > On Tue, Nov 22, 2022 at 9:32 AM Tom Rini wrote: > > > > > > With gcc-12.2 we now get: > > > lib/zlib/inflate.c:360: undefined reference to `__gnu_thumb1_case_si' > > > when building this platform. This seems like some odd problem with LTO > > > and Thumb, but since the platform continues to link, I assume it's > > > within size constraints, so lets just disable LTO for now. > > > > We don't have a hard size constraint for this board. Thumb and LTO > > were to help keep the image 512K or less (by convention, for some > > downstream scripts). Ah, well, uh-oh. Then we needed to add: CONFIG_HAS_BOARD_SIZE_LIMIT=3Dy CONFIG_BOARD_SIZE_LIMIT=3D524288 to the config. Which is fine now, but without both LTO and thumb, we now are too big. So this means digging harder at that error message. Which in turn shows that 806f86bd826e ("arm: lib: Import Thumb1 functions") is where we imported the __gnu_thumb1_case_* functions we have now, and need to do similar work to import (and then do the follow-up improvements to) __gnu_thumb1_case_si. Can you please take a look at that? FWIW, the gcc-12.2.0 toolchain I'm using is just https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0= /x86_64-gcc-12.2.0-nolibc-arm-linux-gnueabi.tar.xz --=20 Tom --g+nE7Lp8ucACtfsu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmN+I+MACgkQFHw5/5Y0 tyyIhAwAnnmIWFVItew1pHr8qA0wti08flBROnxZ8QRHcyX0E/e8LPCSTWxoqeW1 UMTPHFPLSvWPlIIyVN6LoP1e6GH6GnDAToKqXfJwOYBMdBFwYZ89Nme856aE8do1 BGw3s3kJdnYCzY6f14TtZjUFncn+zJ6jkRQmw+XW6Tx7HLCxdTt5smqWGSv7YYI6 OlAJ8eIcBAqrvOSfEw+H73CCXLzb0p/6mqKBIMe2hMVXE5fw3wTwkIWOgqTjQ1fH YBwNmldHn29kltJmKchmdNXhhFBZKc6Swp0rwGVhpmOVknRYzDhJ7scIy6waa2ah FJTE+WaACmXOgDxv8KsA/71GApi9dZbpsfWVJj6EWFgcCh/6tFWd97p3ZWAY0azp F3WaLXiLweCQv/Ts4Z5X/YwZP/Tcc5qqOYOoUEKqT4floSRDwZAzni/JwBhJk5ES cr2RuqsDEwdHO6mVYm/eSBuCYm3GUs3+n+tbir6SlnhCUSWaVVq/lK2tWxwXPMmo EpBUugCl =DGap -----END PGP SIGNATURE----- --g+nE7Lp8ucACtfsu--