* [Buildroot] [PATCH 1/1] grub2: force -fno-stack-protector in CFLAGS
@ 2017-08-30 1:47 Erico Nunes
2017-09-06 11:30 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Erico Nunes @ 2017-08-30 1:47 UTC (permalink / raw)
To: buildroot
grub2 fails to configure when BR2_SSP_ALL is enabled, with the following
configure error:
checking whether -fno-asynchronous-unwind-tables works... yes
checking whether -fno-unwind-tables works... yes
checking for target linking format... unknown
configure: error: no suitable link format found
This can be worked around by enforcing -fno-stack-protector in the
package CFLAGS in a way that overrides the SSP flag, as is already done
for the valgrind package.
Fixes bug #10261.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reported-by: Dr I J Ormshaw <ian_ormshaw@waters.com>
---
boot/grub2/grub2.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boot/grub2/grub2.mk b/boot/grub2/grub2.mk
index 36f27d14ea..492cddf1a5 100644
--- a/boot/grub2/grub2.mk
+++ b/boot/grub2/grub2.mk
@@ -53,7 +53,7 @@ GRUB2_CONF_ENV = \
$(HOST_CONFIGURE_OPTS) \
CPP="$(HOSTCC) -E" \
TARGET_CC="$(TARGET_CC)" \
- TARGET_CFLAGS="$(TARGET_CFLAGS)" \
+ TARGET_CFLAGS="$(TARGET_CFLAGS) -fno-stack-protector" \
TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \
TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
NM="$(TARGET_NM)" \
--
2.13.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] grub2: force -fno-stack-protector in CFLAGS
2017-08-30 1:47 [Buildroot] [PATCH 1/1] grub2: force -fno-stack-protector in CFLAGS Erico Nunes
@ 2017-09-06 11:30 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2017-09-06 11:30 UTC (permalink / raw)
To: buildroot
>>>>> "Erico" == Erico Nunes <nunes.erico@gmail.com> writes:
> grub2 fails to configure when BR2_SSP_ALL is enabled, with the following
> configure error:
> checking whether -fno-asynchronous-unwind-tables works... yes
> checking whether -fno-unwind-tables works... yes
> checking for target linking format... unknown
> configure: error: no suitable link format found
> This can be worked around by enforcing -fno-stack-protector in the
> package CFLAGS in a way that overrides the SSP flag, as is already done
> for the valgrind package.
> Fixes bug #10261.
> Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
> Reported-by: Dr I J Ormshaw <ian_ormshaw@waters.com>
Committed to 2017.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-06 11:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-30 1:47 [Buildroot] [PATCH 1/1] grub2: force -fno-stack-protector in CFLAGS Erico Nunes
2017-09-06 11:30 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.