All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/1] grub2: force -fno-stack-protector in CPPFLAGS
@ 2018-04-19  8:36 tarek_el-sherbiny at waters.com
  2018-04-19  8:36 ` [Buildroot] [PATCH 1/1] " tarek_el-sherbiny at waters.com
  0 siblings, 1 reply; 4+ messages in thread
From: tarek_el-sherbiny at waters.com @ 2018-04-19  8:36 UTC (permalink / raw)
  To: buildroot

From: Tarek El-Sherbiny <tarek_el-sherbiny@waters.com>

grub2 fails to configure when BR2_SSP_ALL is enabled, with the following configure error:

checking for target linking format... unknown
configure: error: no suitable link format found
package/pkg-generic.mk:211: recipe for target 'output/build/grub2-2.02/.stamp_configured' failed

This problem has been previously fixed by here:
commit 2a27294e9ade6130a12ced9a1f152c51431a870e

However, a more recent change which was introduced in 2018.02.x branch has broken the build:
commit 20a4583ebf7fe97ea22a1ea11621dd44a8114ca5

This patch will implement the same workaround but for the correct flags.


Tarek El-Sherbiny (1):
  grub2: force -fno-stack-protector in CPPFLAGS

 boot/grub2/grub2.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.14.1


===========================================================
The information in this email is confidential, and is intended solely for the addressee(s). 
Access to this email by anyone else is unauthorized and therefore prohibited.  If you are 
not the intended recipient you are notified that disclosing, copying, distributing or taking 
any action in reliance on the contents of this information is strictly prohibited and may be unlawful.
===========================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] grub2: force -fno-stack-protector in CPPFLAGS
  2018-04-19  8:36 [Buildroot] [PATCH 0/1] grub2: force -fno-stack-protector in CPPFLAGS tarek_el-sherbiny at waters.com
@ 2018-04-19  8:36 ` tarek_el-sherbiny at waters.com
  2018-04-19 21:32   ` Thomas Petazzoni
  2018-05-01  6:54   ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: tarek_el-sherbiny at waters.com @ 2018-04-19  8:36 UTC (permalink / raw)
  To: buildroot

From: Tarek El-Sherbiny <tarek_el-sherbiny@waters.com>

The last commit which implements this workaround is now broken by
commit 20a4583ebf7fe97ea22a1ea11621dd44a8114ca5
This commit will force no-stack-protector in CPPFLAGS instead of
CFLAGS to work with buildroot 2018_02

Signed-off-by: Tarek El-Sherbiny <tarek_el-sherbiny@waters.com>
---
 boot/grub2/grub2.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/boot/grub2/grub2.mk b/boot/grub2/grub2.mk
index 492cddf1a5..35aea41287 100644
--- a/boot/grub2/grub2.mk
+++ b/boot/grub2/grub2.mk
@@ -53,8 +53,8 @@ GRUB2_CONF_ENV = \
 	$(HOST_CONFIGURE_OPTS) \
 	CPP="$(HOSTCC) -E" \
 	TARGET_CC="$(TARGET_CC)" \
-	TARGET_CFLAGS="$(TARGET_CFLAGS) -fno-stack-protector" \
-	TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \
+	TARGET_CFLAGS="$(TARGET_CFLAGS)" \
+	TARGET_CPPFLAGS="$(TARGET_CPPFLAGS) -fno-stack-protector" \
 	TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
 	NM="$(TARGET_NM)" \
 	OBJCOPY="$(TARGET_OBJCOPY)" \
-- 
2.14.1


===========================================================
The information in this email is confidential, and is intended solely for the addressee(s). 
Access to this email by anyone else is unauthorized and therefore prohibited.  If you are 
not the intended recipient you are notified that disclosing, copying, distributing or taking 
any action in reliance on the contents of this information is strictly prohibited and may be unlawful.
===========================================================

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] grub2: force -fno-stack-protector in CPPFLAGS
  2018-04-19  8:36 ` [Buildroot] [PATCH 1/1] " tarek_el-sherbiny at waters.com
@ 2018-04-19 21:32   ` Thomas Petazzoni
  2018-05-01  6:54   ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2018-04-19 21:32 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 19 Apr 2018 09:36:59 +0100, tarek_el-sherbiny at waters.com wrote:
> From: Tarek El-Sherbiny <tarek_el-sherbiny@waters.com>
> 
> The last commit which implements this workaround is now broken by
> commit 20a4583ebf7fe97ea22a1ea11621dd44a8114ca5
> This commit will force no-stack-protector in CPPFLAGS instead of
> CFLAGS to work with buildroot 2018_02
> 
> Signed-off-by: Tarek El-Sherbiny <tarek_el-sherbiny@waters.com>
> ---
>  boot/grub2/grub2.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks, I've applied, after reworking a bit the commit log, and adding
a reference to your bug report.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] grub2: force -fno-stack-protector in CPPFLAGS
  2018-04-19  8:36 ` [Buildroot] [PATCH 1/1] " tarek_el-sherbiny at waters.com
  2018-04-19 21:32   ` Thomas Petazzoni
@ 2018-05-01  6:54   ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-05-01  6:54 UTC (permalink / raw)
  To: buildroot

>>>>> "tarek" == tarek el-sherbiny <tarek_el-sherbiny@waters.com> writes:

 > From: Tarek El-Sherbiny <tarek_el-sherbiny@waters.com>
 > The last commit which implements this workaround is now broken by
 > commit 20a4583ebf7fe97ea22a1ea11621dd44a8114ca5
 > This commit will force no-stack-protector in CPPFLAGS instead of
 > CFLAGS to work with buildroot 2018_02

 > Signed-off-by: Tarek El-Sherbiny <tarek_el-sherbiny@waters.com>

Committed to 2018.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-01  6:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19  8:36 [Buildroot] [PATCH 0/1] grub2: force -fno-stack-protector in CPPFLAGS tarek_el-sherbiny at waters.com
2018-04-19  8:36 ` [Buildroot] [PATCH 1/1] " tarek_el-sherbiny at waters.com
2018-04-19 21:32   ` Thomas Petazzoni
2018-05-01  6:54   ` 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.