On Fri, 10 Feb 2023 at 14:42, Ard Biesheuvel <a...@kernel.org> wrote: > > On Fri, 10 Feb 2023 at 09:42, Gerd Hoffmann <kra...@redhat.com> wrote: > > > > On Thu, Feb 09, 2023 at 05:46:15PM +0100, Ard Biesheuvel wrote: > > > On Thu, 9 Feb 2023 at 11:27, Gerd Hoffmann <kra...@redhat.com> wrote: > > > > > > > > Known problem: the NOOPT builds fail due to PEI becoming too big. > > > > > > > > What is the reason for doing these NOOPT builds? > > > > > > They are very useful for doing single step debugging with GDB. On ARM, > > > I use the NOOPT builds fairly regularly. > > > > Can LTO be enabled for the NOOPT build? Or depends that on > > optimizations being turned on? > > >
With the hunk below applied: FV Space Information SECFV [63%Full] 212992 (0x34000) total, 135824 (0x21290) used, 77168 (0x12d70) free PEIFV [59%Full] 917504 (0xe0000) total, 544744 (0x84fe8) used, 372760 (0x5b018) free DXEFV [53%Full] 13631488 (0xd00000) total, 7300712 (0x6f6668) used, 6330776 (0x609998) free FVMAIN_COMPACT [40%Full] 3440640 (0x348000) total, 1383832 (0x151d98) used, 2056808 (0x1f6268) free Without: FV Space Information SECFV [49%Full] 212992 (0x34000) total, 105936 (0x19dd0) used, 107056 (0x1a230) free PEIFV [62%Full] 917504 (0xe0000) total, 575656 (0x8c8a8) used, 341848 (0x53758) free DXEFV [56%Full] 13631488 (0xd00000) total, 7652840 (0x74c5e8) used, 5978648 (0x5b3a18) free FVMAIN_COMPACT [40%Full] 3440640 (0x348000) total, 1376272 (0x150010) used, 2064368 (0x1f7ff0) free (without any -D options turned on) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index f77e936c0453..48319fc2e9b4 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -2342,8 +2342,8 @@ RELEASE_GCC5_IA32_DLINK_FLAGS = DEF(GCC5_IA32_X64_DLINK_FLAGS) -flto -Os -Wl, RELEASE_GCC5_X64_CC_FLAGS = DEF(GCC5_X64_CC_FLAGS) -flto -DUSING_LTO -Wno-unused-but-set-variable -Wno-unused-const-variable RELEASE_GCC5_X64_DLINK_FLAGS = DEF(GCC5_X64_DLINK_FLAGS) -flto -Os - NOOPT_GCC5_X64_CC_FLAGS = DEF(GCC5_X64_CC_FLAGS) -O0 - NOOPT_GCC5_X64_DLINK_FLAGS = DEF(GCC5_X64_DLINK_FLAGS) -O0 + NOOPT_GCC5_X64_CC_FLAGS = DEF(GCC5_X64_CC_FLAGS) -O0 -flto -DUSING_LTO + NOOPT_GCC5_X64_DLINK_FLAGS = DEF(GCC5_X64_DLINK_FLAGS) -O0 -flto ################## # GCC5 ARM definitions -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100017): https://edk2.groups.io/g/devel/message/100017 Mute This Topic: https://groups.io/mt/96850388/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-