From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) by mx.groups.io with SMTP id smtpd.web11.11725.1687356828489205399 for ; Wed, 21 Jun 2023 07:13:48 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=W0ugOJIu; spf=pass (domain: gmail.com, ip: 209.85.217.52, mailfrom: pedro.falcato@gmail.com) Received: by mail-vs1-f52.google.com with SMTP id ada2fe7eead31-440b31263f5so1297855137.0 for ; Wed, 21 Jun 2023 07:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687356827; x=1689948827; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=A14ijSpBn23puadhkAb1tcPdXxOURgHK306QZW3+mj0=; b=W0ugOJIuAHvAymw/KcuL01Q2MiL/g7Wp08QWVLY/pjIHI4b5JwljrVJu2ppkJFDKkS LXWBaUccABz2bAA1osPiQUnZDZMPemKQZ4iHhKzCwy7Kcx//Dpt+VlakdJXQYyXZHwzq UnNUc18a4heTUzKeu6y64/J4ueowXo1UfvGiCW+EOLVgNLDFNQWHaC4MnDJwNK2XdtM9 0gdAnrd5fREAr1t1iSO65TWq2PNxCRw/U4dn8qEiT6yYDJGTjqbIkISKBPlTyq1jjnT9 cSfPprF+PktVp+SKCTjsMeuenmQ3QYgUf2CDMIKHPD9LAVRRjb00mA662VVc7sTN0Tcf I6fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687356827; x=1689948827; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A14ijSpBn23puadhkAb1tcPdXxOURgHK306QZW3+mj0=; b=cBAMUrYTPL0m/LeyfU2bNHsI9tqSsGOnWKMV4Bg5+0tk/+C4V+/Is1ixY9vdMnS3Ro lOaaU2hcyyYBLO0R3XuFvJ7LIVgREKZHlN9yHRa73NK1hTm/oLXm+UzSiHBCJzFKKigp l+MH6t1SQSgYjEAWvEFfrfxcgAd/v57jyWOABRWwJCTdPDsJtYZnXwcaU5nkT60C1p+5 1fh4maiSBpWclyqHm52lxGl3COPy+vNgYKvTsvKSY2Cx4a0VZQr9SXKAPDQkIntQF8iK 3J1BKk+WQhiWdDWUjOwlnjF9W+BCwSvEVmupHbM9xQ55EVLcroIvl/aXnfktIfF/vVfk L0SQ== X-Gm-Message-State: AC+VfDzhpj6aYun4Qx2G9Upu5W2FoAGN09gP+ldzOnhaAFyorriSYSuC S62glPEfZLa+3ELePBjYk9uklEU1dYnzP+wcwnE= X-Google-Smtp-Source: ACHHUZ7jEd5bn+4Ujqik5V4CQKMYmsC5SWRBn0n6O3zG3Kwgw110gB6olx8pWHK0rxlKLypx4wm5V52c0rLrFvmZP90= X-Received: by 2002:a67:fc82:0:b0:440:afe5:ac1b with SMTP id x2-20020a67fc82000000b00440afe5ac1bmr3713817vsp.35.1687356827544; Wed, 21 Jun 2023 07:13:47 -0700 (PDT) MIME-Version: 1.0 References: <20230620111139.21365-1-yi1.li@intel.com> In-Reply-To: From: "Pedro Falcato" Date: Wed, 21 Jun 2023 15:13:36 +0100 Message-ID: Subject: Re: [edk2-devel] [PATCH] OvmfPkg/PlatformCI: Skip GCC5_OVMF_IA32X64_FULL_NOOPT build To: Gerd Hoffmann Cc: edk2-devel-groups-io , yi1.li@intel.com, Ard Biesheuvel , Jiewen Yao , Jordan Justen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 21, 2023 at 8:55=E2=80=AFAM Gerd Hoffmann w= rote: > > On Wed, Jun 21, 2023 at 01:40:06AM +0100, Pedro Falcato wrote: > > On Tue, 20 Jun 2023, 12:11 Li, Yi, wrote: > > > > > The effect of LTO is limited with optimization turned off, and blocke= d > > > the upgrade of Openssl3.0. We already skipped this build with VS2019, > > > skip the GCC NOOPT build also. > > > > > Hi, > > > > If LTO is the problem here, have you given ffunction-sections + > > fdata-sections + gc-sections a spin? > > lto alone works and reduces size a bit, also turning on optimizations > has a much bigger effect though. Which I suspect happens because gcc > detects constant expressions then, calculates them at compile time > instead of runtime, which in turn removes function calls in code paths > never taken. Right, LTO is of course a lot less limited when it comes to this and may give out further size reductions. But if we can't enable LTO (as in NOOPT), gc-sections /may/ help here; gc-sections will *not* affect debugging whatsoever. Of course, whether this works is pure speculation; I personally haven't tested this. --=20 Pedro