Subject: Re: [PATCH 8/9] gnu: edk2-tools: Update to 202502.

From: Efraim Flashner <[email-masked]>
Date: Sun, 23 Mar 2025 17:22:26 +0200

On Sat, Mar 22, 2025 at 04:12:59PM +0900, Maxim Cournoyer wrote:
> Hi,
> 
> Efraim Flashner <[email-masked]> writes:
> 
> > * gnu/packages/firmware.scm (edk2-tools): Update to 202502.
> > [arguments]: When building on armhf-linux add a phase to adjust the
> > compiler flags.
> 
> [...]
> 
> > +            #$@(if (target-arm32?)
> > +                   #~((add-before 'configure 'fix-armhf-flags
> > +                        (lambda _
> > +                          (substitute* "BaseTools/Conf/tools_def.template"
> > +                            (("(DEFINE GCC_ARM_CC_FLAGS.*)-mstack-protector-guard=global" _ gcc-arm)
> > +                             (string-append gcc-arm "-fstack-protector-all"))))))
> > +                   #~())
> 
> Is this problem known upstream?  If yes, it'd be nice to cross-reference
> it here; otherwise, it'd be nice to report it to them (and
> cross-reference the opened issue).

I'll check, but it's probably based on our GCC version.  It only happens
for the armhf firmware when built on armhf.

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted