From patchwork Sun Nov 10 21:09:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1192672 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.137; helo=fraxinus.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="LjkkNpEG"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47B67V25hPz9sPK for ; Mon, 11 Nov 2019 08:08:54 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9DCC285725; Sun, 10 Nov 2019 21:08:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sEA4EUIm4bKR; Sun, 10 Nov 2019 21:08:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1875B85852; Sun, 10 Nov 2019 21:08:51 +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 01BBA1BF297 for ; Sun, 10 Nov 2019 21:08:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id ECEFA878C4 for ; Sun, 10 Nov 2019 21:08:49 +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 nHsqtsoAE5zy for ; Sun, 10 Nov 2019 21:08:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by hemlock.osuosl.org (Postfix) with ESMTPS id 0AB018788B for ; Sun, 10 Nov 2019 21:08:49 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id j18so1760266wmk.1 for ; Sun, 10 Nov 2019 13:08:48 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=kpEyGUPRP7axHsHzu6ZtyDjefUYwd90bs8UbzZ4VckE=; b=LjkkNpEG62yTnQgl279IVwq6n/42QBCDoehKOpU78OoGeur4Ue90Tj1MHOrPYAPnwt o4gKDaoo0DUfruB5ZFO0RdfNYXDn+5ZY6pYv/2sajLc3Uy+o7dgoVPWsqbZgZaqETIRL HQSvEX4qsOi/Me9gebDQo6zVU/GJaQFS6wYEqceQNlNqcVGkMlQRRz0OgDl2BdLbl/Vw Q1pGHMjYHTgwq373mx2nV83OSuSqgzxS9eMPxu14Wypr9OaG8UXoNytLQq4eIJR9SSSv fkcYhNtagVDbsqhi2YGSYNLt1IG9VDRlJN3DsnXkPcR/NXovmRY1iXc+4KUOOxvYmR0r NGEA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=kpEyGUPRP7axHsHzu6ZtyDjefUYwd90bs8UbzZ4VckE=; b=N87xeeddFUDQ2juH8ImXBHQjv+Z6ad4TwgROH1RMEGqC++Ojf4qSTK4JGL9ptscwAG ayy7AGviSx/MFjYwXbbq+yOHs84C5DJeq5xj0pzmFVdwWOlIMb12fkMBo9vfaRTtJ3wK ccKdkC8UTBd02yaHBAH5/zAnzc19rzyoScZaTQDidsraj+5uF+Ryye4oQ8MjD7pDZjGj OF8gUV2IQ6dO8Sv3eQgy2QQkfbjeNiK7nlKmlyo7AWwwtyiHpJsZdjGYpt/MqORG2VX1 HMstl+HwjU2tqHf8QBZxKFx4c+ZUVJYF0rDwX2u9wFhS3w/GmWJ1wnoNhupScIUKv7I1 j+wg== X-Gm-Message-State: APjAAAW2v7FmAlc2e1E83GIDkYftpXI9o/5JNuEsGvQ3YRFJsj0lTQ5R vBa+73QymAPG2bEmcAYtNCHr5lgF X-Google-Smtp-Source: APXvYqyf197Nc3qW/c79IMXe38WkZKCwrTUPlSNxW5Mpt0+cSCppP6WddRBecasTo6/q+r2mNeXL5g== X-Received: by 2002:a1c:7d95:: with SMTP id y143mr18463032wmc.143.1573420126977; Sun, 10 Nov 2019 13:08:46 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2019 13:08:46 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 10 Nov 2019 22:09:20 +0100 Message-Id: <20191110210920.5625-2-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191110210920.5625-1-fontaine.fabrice@gmail.com> References: <20191110210920.5625-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/am33x-cm3: disable PIE 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.org/results/418a40b995e91bc66e692dfbc4b0521db3fa5fbb Signed-off-by: Fabrice Fontaine --- ...Makefile-unconditionally-disable-PIE.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/am33x-cm3/0003-Makefile-unconditionally-disable-PIE.patch diff --git a/package/am33x-cm3/0003-Makefile-unconditionally-disable-PIE.patch b/package/am33x-cm3/0003-Makefile-unconditionally-disable-PIE.patch new file mode 100644 index 0000000000..6be157932d --- /dev/null +++ b/package/am33x-cm3/0003-Makefile-unconditionally-disable-PIE.patch @@ -0,0 +1,33 @@ +From 0e8c3c4851ce64268a8ae1810ef72594251d917d Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Sun, 10 Nov 2019 21:57:12 +0100 +Subject: [PATCH] Makefile: unconditionally disable PIE + +Though -nostdlib is passed in $(CFLAGS), -fno-pie must also be passed to +avoid linking errors related to overlapping sections if toolchain +enforces PIE. + +Fixes: + - http://autobuild.buildroot.org/results/418a40b995e91bc66e692dfbc4b0521db3fa5fbb + +Signed-off-by: Fabrice Fontaine +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 5226006..fe3d844 100644 +--- a/Makefile ++++ b/Makefile +@@ -17,7 +17,7 @@ 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 -fno-stack-protector \ +- -g -I$(INCLUDES) -O2 ++ -fno-pie -g -I$(INCLUDES) -O2 + LDFLAGS =-nostartfiles -fno-exceptions -Tfirmware.ld + + EXECUTABLE=am335x-pm-firmware.elf +-- +2.23.0 +