emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49244: closed ([PATCH] gnu: grub-efi: Only enable the stack protecto


From: GNU bug Tracking System
Subject: bug#49244: closed ([PATCH] gnu: grub-efi: Only enable the stack protector on x86_64-linux.)
Date: Thu, 01 Jul 2021 23:31:01 +0000

Your message dated Fri, 02 Jul 2021 00:30:58 +0100
with message-id <87bl7l7gst.fsf@cbaines.net>
and subject line Re: bug#49244: [PATCH] gnu: grub-efi: Only enable the stack 
protector on x86_64-linux.
has caused the debbugs.gnu.org bug report #49244,
regarding [PATCH] gnu: grub-efi: Only enable the stack protector on 
x86_64-linux.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
49244: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49244
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: grub-efi: Only enable the stack protector on x86_64-linux. Date: Sun, 27 Jun 2021 19:47:08 +0100
Follow up to 018f95094153660e3041ec160718f0bda286a3dc, as gcc on aarch64-linux
doesn't seem to support -mstack-protector-guard=global.

* gnu/packages/bootloaders.scm (grub-efi)[arguments]: Only add
"--enable-stack-protector" to #:configure-flags when system is x86_64-linux.
---
 gnu/packages/bootloaders.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index e83f21ea63..1ff0348ac7 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -303,7 +303,10 @@ menu to select one of the installed operating systems.")
            ((#:tests? _ #f) #f)
            ((#:configure-flags flags ''())
             `(cons* "--with-platform=efi"
-                    "--enable-stack-protector" ; EFI-only for now
+                    ,@(if (string=? (%current-system)
+                                    "x86_64-linux")
+                          '("--enable-stack-protector") ; EFI-only for now
+                          '())
                     ,flags))
            ((#:phases phases)
             `(modify-phases ,phases
-- 
2.32.0




--- End Message ---
--- Begin Message --- Subject: Re: bug#49244: [PATCH] gnu: grub-efi: Only enable the stack protector on x86_64-linux. Date: Fri, 02 Jul 2021 00:30:58 +0100 User-agent: mu4e 1.4.15; emacs 27.2
Mathieu Othacehe <othacehe@gnu.org> writes:

> Hey Chris,
>
>> +                    ,@(if (string=? (%current-system)
>> +                                    "x86_64-linux")
>> +                          '("--enable-stack-protector") ; EFI-only for now
>> +                          '())
>
> Maybe we should also avoid this option when cross-compiling? Otherwise
> it looks OK.

Yeah, I was trying to test the cross-compiling case, but I think
something else fails regardless. Anyway, I've pushed something similar
to what Maxime suggested as fd549750d9ab23a0505aeb4c03e1299e860a4f16.

Thanks,

CHris

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]