From patchwork Sun Nov 10 21:09:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1192671 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="vbB+VAt6"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47B67S48ybz9sNx for ; Mon, 11 Nov 2019 08:08:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AAC9C86742; Sun, 10 Nov 2019 21:08:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jiH60yXTqhKD; Sun, 10 Nov 2019 21:08:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BCA7F865C4; Sun, 10 Nov 2019 21:08:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 489541BF297 for ; Sun, 10 Nov 2019 21:08:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 419BF865C4 for ; Sun, 10 Nov 2019 21:08:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KvaiZwGr6ckI for ; Sun, 10 Nov 2019 21:08:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5D5D2862E8 for ; Sun, 10 Nov 2019 21:08:47 +0000 (UTC) Received: by mail-wm1-f42.google.com with SMTP id c22so11282658wmd.1 for ; Sun, 10 Nov 2019 13:08:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MHlSkk5IW9IRV3iqKlMYspAH4C+9CYoXQ45SiX7JSRw=; b=vbB+VAt6CwF1/ErClQiVwVigURKtbZ9RBSRYJAKWJtWyxIOTc4OXTauuV69GaNYS+B a2CzQdmxrZUmx/cGV0SlMSY+fuztZxggLAhJGZb3eiRZz12OTpHgyvGLh71RA696IC2v MJfntvdd0UNra6LaFkUOjQzFyERZ/S8SmoMoETrfb24mz4mexXcqaWlmuSQ+gjiTvhAy pIRMCn2ehfwNE4HxXIWPUH6LgGJI3AZOLaNGUNqMZb82QW165nZORm8yw67qKq/NYk9y kx7aO+gim19BSGD4DJNpT/oW5g8sYFDTbSb36bllufrO5qztcZ6LCcFLHB4ghvI8gnuH rifA== 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:mime-version :content-transfer-encoding; bh=MHlSkk5IW9IRV3iqKlMYspAH4C+9CYoXQ45SiX7JSRw=; b=Gs7bnrruVsq0q+OmJDemN44SPMbjCzNcLLNt31LdR/qH6wCXtcmCGgX0ygPdn0sXdy sLqNamzRzU6xKE0rECpOS8d082B1YLpMQsj5yqNCaBIyHkhYA1clRWKwtxIohMzztPPU 0UQIXHBQYeRcjC+PKM/5vAQT6m/Uexo7h6HWUYQHJd/sY2nwM0t0mMRfHYzqTG86Rlgt RHIQauNS9rvlkV7T0jracnVV/aSXUcN+FjMMtnQyzfI9UKy7dTgebwwePAUvoIDD4Y9v j0AG8mo6zm2LGV6MqyNzeqipl12emq/VkH5O3nEFC39XL+4UV46q8K7GSaLmuFT3TRNu d2/Q== X-Gm-Message-State: APjAAAV8wmP99ocVFFeyAJ2SdWf1MhnBRqOvH5J7QJwzwKH/QwN1waiO WxB9sR+XZAzvoFkDS1AZUPzoA7A8 X-Google-Smtp-Source: APXvYqw2tUMIdFwX4l6m2SkmrJRMvjkHWqRuuaSmJ1kAY4/B6snGpch9PcA4mygc6dXaygX2bOJuAQ== X-Received: by 2002:a7b:c95a:: with SMTP id i26mr18515411wml.41.1573420125399; Sun, 10 Nov 2019 13:08:45 -0800 (PST) Received: from kali.home (lfbn-1-3732-187.w86-229.abo.wanadoo.fr. [86.229.230.187]) by smtp.gmail.com with ESMTPSA id c144sm15595851wmd.1.2019.11.10.13.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2019 13:08:44 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 10 Nov 2019 22:09:19 +0100 Message-Id: <20191110210920.5625-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/am33x-cm3: disable SSP X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.net/results/3a3a21f3c35ea025e9b93e09c2454aed0ad31034 Signed-off-by: Fabrice Fontaine --- ...Makefile-unconditionally-disable-SSP.patch | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/am33x-cm3/0002-Makefile-unconditionally-disable-SSP.patch diff --git a/package/am33x-cm3/0002-Makefile-unconditionally-disable-SSP.patch b/package/am33x-cm3/0002-Makefile-unconditionally-disable-SSP.patch new file mode 100644 index 0000000000..ed333bfe05 --- /dev/null +++ b/package/am33x-cm3/0002-Makefile-unconditionally-disable-SSP.patch @@ -0,0 +1,35 @@ +From 6c3b05b74ccd49d8ba246bfef0c2e549b9f2bf7b Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Tue, 29 Oct 2019 16:14:18 +0100 +Subject: [PATCH] Makefile: unconditionally disable SSP + +Though -nostdlib is passed in $(CFLAGS), -fno-stack-protector must also be +passed to avoid linking errors related to undefined references to +'__stack_chk_guard' and '__stack_chk_fail' if toolchain enforces +-fstack-protector. + +Fixes: + - http://autobuild.buildroot.net/results/3a3a21f3c35ea025e9b93e09c2454aed0ad31034 + +Signed-off-by: Fabrice Fontaine +--- + Makefile | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index c3ec071..5226006 100644 +--- a/Makefile ++++ b/Makefile +@@ -16,7 +16,8 @@ INCLUDES = $(SRCDIR)/include + CFLAGS =-march=armv7-m -mcpu=cortex-m3 -mthumb -nostdlib -Wall -Wundef \ + -Werror-implicit-function-declaration -Wstrict-prototypes \ + -Wdeclaration-after-statement -fno-delete-null-pointer-checks \ +- -Wempty-body -fno-strict-overflow -g -I$(INCLUDES) -O2 ++ -Wempty-body -fno-strict-overflow -fno-stack-protector \ ++ -g -I$(INCLUDES) -O2 + LDFLAGS =-nostartfiles -fno-exceptions -Tfirmware.ld + + EXECUTABLE=am335x-pm-firmware.elf +-- +2.23.0 +