From patchwork Wed Aug 30 01:47:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erico Nunes X-Patchwork-Id: 807377 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dO5EZjpI"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xhpM766Pbz9sNr for ; Wed, 30 Aug 2017 11:48:51 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 04E9489A61; Wed, 30 Aug 2017 01:48:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kF8MLIyTBBt2; Wed, 30 Aug 2017 01:48:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5D10F89A4D; Wed, 30 Aug 2017 01:48:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 1697E1C1568 for ; Wed, 30 Aug 2017 01:48:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1030389A4D for ; Wed, 30 Aug 2017 01:48:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3g6zuKyBvscW for ; Wed, 30 Aug 2017 01:48:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by hemlock.osuosl.org (Postfix) with ESMTPS id 7994E898CF for ; Wed, 30 Aug 2017 01:48:41 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id j3so3280113wrb.5 for ; Tue, 29 Aug 2017 18:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=mB+VPqKdMjmsHN1YFcIWBxlIY76YcWWgdDlpce6Xv2c=; b=dO5EZjpImUZEFuNjJh8PbB/qBlxNsWncpfORpFGluc1cIvkJYBc9tQC04hj9wrRvi0 PR9v15MAbmATmo5C5LwKbA6xmiyVmcG+usS/S2wQXdXHDIPj8B804l6IpR+0VMf2m1c/ Vjn0dcK/HiyNG4UQwoMRP3WItV4fEDCzPDG3g6kDVRZt8Q6Bmp1BC+5asuv/Lnazdyd+ 2QzGZtsJakCVqK+J/hc5553j2MwGmr8Svbu/tPP0lnPT5i7fE/Hsq188rf4jxjreVGBv W2lWbaTIOvtzhaYmP0F1RFq7pWzijjG6k1HL3LmJqIW2j1pC2m7DlBsWADzmgiarhn29 5fWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mB+VPqKdMjmsHN1YFcIWBxlIY76YcWWgdDlpce6Xv2c=; b=OMm9FQ/QW1lV6cPinlDGnGR+RROqg0euBbW64GzdbB4l58/DFQRFSnsjoE2CBqcxG2 9qDeWSdKd5g5JEtIaTK9YlB4bmXSlskzQTaViwV/luIrUxTwDDv9DbXx1cF/t2mlKJts X06pJiCf4i80YBUF5J9ckmTvKuzGUZmKx/N4YEP8+TiwTtELhLYP0I/hSwPJTU398OKB m+dc4h80VO6tQFxiYDQ0hnYpxZPt81g4Jnstf50tBAJ0uIIzsJ+68Kq/fM87MkQqNBv3 57k3IQ85ZBKZsZTqDokeOII3HKInaaS0iZN3lsAE9nut2mpces1wRzdpLN2M1V7xoCMN h5QQ== X-Gm-Message-State: AHYfb5hKLsCgn8TkY6QUXGO0sqflwXznIdqbtETh7ad/nA0TezYtznpO 8sC9wX0oQoiRhPhe X-Received: by 10.223.133.98 with SMTP id 89mr1183502wrh.116.1504057719619; Tue, 29 Aug 2017 18:48:39 -0700 (PDT) Received: from localhost.localdomain (ip-78-102-114-60.net.upcbroadband.cz. [78.102.114.60]) by smtp.gmail.com with ESMTPSA id o191sm2359504wmg.5.2017.08.29.18.48.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Aug 2017 18:48:38 -0700 (PDT) From: Erico Nunes To: buildroot@buildroot.org Date: Wed, 30 Aug 2017 03:47:56 +0200 Message-Id: <20170830014756.1025-1-nunes.erico@gmail.com> X-Mailer: git-send-email 2.13.5 Cc: Thomas Petazzoni , Dr I J Ormshaw Subject: [Buildroot] [PATCH 1/1] grub2: force -fno-stack-protector in CFLAGS X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "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 Reported-by: Dr I J Ormshaw --- 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)" \