From patchwork Thu Jul 6 14:33:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 107149 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp2246176obb; Thu, 6 Jul 2017 07:34:24 -0700 (PDT) X-Received: by 10.99.131.193 with SMTP id h184mr27051587pge.80.1499351664489; Thu, 06 Jul 2017 07:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499351664; cv=none; d=google.com; s=arc-20160816; b=Kvx41BVqtvEuq8ge2v9di1/L42poxV5GhJMUhBS3gL7xb2eZYx3qDRP8xfw22yEJg7 Yo1+Fpz0Y/1T7HebX90whUF6eXhVbcJBRc0t+yenPfGJc/f4HnxPVFa/zZi9s1vQz+rb c0dIRSAiUz18WLQ6qQYjCvLzwwwtSO1Sc/STlf6azQ04WMGLorsahBDzbFMovmOHOEqp CKwoUE6dVfTZxdvo+CUFKa9RPQyKIUHyTuSXHfhkN6euHzewZTHXgrEzcBouHtmtW3LA +Z+s4dtJBCxznqjbZZRma2GjYDzNA/Q8Sga8gdfhA6pwVF5oPMkOEMAZiOO6cMgPkf+p 31Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=JwKbkKZw1b2PRpUeEP6BzX4v9J3N2XqJyRKYXBpWrLs=; b=ibYz8rba3t5QrxH4gppJAXgu6LXiEA3VoXkGMUb72Eg5k8POwhDRHXPpO1C9e4quGP xXtL3UwabpuqR3MyUQEI6cvqCAMNfoPtywDXDKwp5XELiFTZEuraHFoNsYoJDn6agqvP dXq+j/AsbU6LIVQ073J+5Ds7rGHX5+qUL+nc2nDLK3s2rbR1DNm3UBzKG2MyE7C4Siqx frpDzKE9KMtx9237Y8/2hsbiSnZ/UmdRjls+zyoIMC7VdlnCt8tz1F2XWq4oGLQLSkr1 s77Pg+AYn0zw1wXzk1AMHqeN20002qWgtwTmOi43SAJSjVH4PisP00/T9+AY3bjRddEX HKGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=o22kW5mc; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id x7si222408pge.177.2017.07.06.07.34.24; Thu, 06 Jul 2017 07:34:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=o22kW5mc; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 1CB0677BF0; Thu, 6 Jul 2017 14:34:13 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f54.google.com (mail-pg0-f54.google.com [74.125.83.54]) by mail.openembedded.org (Postfix) with ESMTP id 0EEC071C7D for ; Thu, 6 Jul 2017 14:33:39 +0000 (UTC) Received: by mail-pg0-f54.google.com with SMTP id u62so1905175pgb.3 for ; Thu, 06 Jul 2017 07:33: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:in-reply-to:references; bh=MyXxFFTqsgC4/nC0ZOJZkbcdQpfgko0LLk/6HidsIxo=; b=o22kW5mcma46KaKVj73Ab7zxkBBmvjxo4sq1GhwMu+lsqf2K4GMf1A6nQkx3Zh7nw+ qZUsTMehpBTpAafjvfKRu0dCqQmI3E4iVPQ2hrYLRNa73AOcEnWy/daWoyHO4DXAEjsk M4hnm4KCowpIUSsiNZeu2uUo86smrgZyXD9OquGZzG05od8CG+GPwlkAHai4SNJsAhTi nOU6R8fyTWbSCEL65ZdIP9R0R1ny7CjpKAwWIpT0YAIT+DyZfBK7H1KEH3C/dGhMH3pU TdVgzMzoWw8Kg4PCQYoJYOoQogT4QuAbqY3h3pLMWM785kCM+Po//Q46ZmREqGQV0iT6 aubw== 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; bh=MyXxFFTqsgC4/nC0ZOJZkbcdQpfgko0LLk/6HidsIxo=; b=kngpKkR9siiAK1KeCp/5x22ukVCJDuKiM6+BOAlBSrllToHnyP6WqLbC86XanBk+iv c5DKaNO+t+jXgI0k3wi3famTjD7x++VHyJcp62UxsHAzG2yNI3OZ2IdS9XEC8jFMDMFn LvUNvk1U+5AwBkbTrOSsg/fZRIA018/KkGMxwOkGzTsLSc16qXHq3CNabPpPI1N5Hucw 93XnshTmz3kqrCKkl2vhE62DBY3xWW0cZbz/kq4gXRArhwPymcVFPDMZy/bTNQ2ySVkS wufF+yim4UKpuRFHCPVflzaGrjlWap9p5LfOCES06uWsqjqWdY7LGTyH5mdjfeyGDK4u R4LA== X-Gm-Message-State: AIVw112tIh14danUnhN9LgyhbAgRUSwyCWsQmKVaNGz75olZVoPosOGm AoA7/HjEhGjCxAtK X-Received: by 10.99.56.21 with SMTP id f21mr26099166pga.235.1499351620733; Thu, 06 Jul 2017 07:33:40 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id w66sm1132739pfi.63.2017.07.06.07.33.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2017 07:33:39 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 6 Jul 2017 07:33:05 -0700 Message-Id: <1931fa539db3849ede250271e18b20548a9a6616.1499351361.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: References: Subject: [OE-core] [PATCH 04/22] gcc7: Enable static PIE X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- meta/recipes-devtools/gcc/gcc-7.1.inc | 1 + .../gcc/gcc-7.1/0048-gcc-Enable-static-PIE.patch | 37 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-7.1/0048-gcc-Enable-static-PIE.patch -- 2.13.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/gcc/gcc-7.1.inc b/meta/recipes-devtools/gcc/gcc-7.1.inc index 4098d6a2c1..b52d51fba6 100644 --- a/meta/recipes-devtools/gcc/gcc-7.1.inc +++ b/meta/recipes-devtools/gcc/gcc-7.1.inc @@ -72,6 +72,7 @@ SRC_URI = "\ file://0045-Link-libgcc-using-LDFLAGS-not-just-SHLIB_LDFLAGS.patch \ file://0046-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \ file://0047-sync-gcc-stddef.h-with-musl.patch \ + file://0048-gcc-Enable-static-PIE.patch \ ${BACKPORTS} \ " BACKPORTS = "\ diff --git a/meta/recipes-devtools/gcc/gcc-7.1/0048-gcc-Enable-static-PIE.patch b/meta/recipes-devtools/gcc/gcc-7.1/0048-gcc-Enable-static-PIE.patch new file mode 100644 index 0000000000..879e360cf3 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-7.1/0048-gcc-Enable-static-PIE.patch @@ -0,0 +1,37 @@ +From 44ef80688b56beea85c0070840dea1e2a4e34aed Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 13 Jun 2017 12:12:52 -0700 +Subject: [PATCH 49/49] gcc: Enable static PIE + +Static PIE support in GCC +see +https://gcc.gnu.org/ml/gcc/2015-06/msg00008.html + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + gcc/config/gnu-user.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h +index 2787a3d16be..ee7b781319e 100644 +--- a/gcc/config/gnu-user.h ++++ b/gcc/config/gnu-user.h +@@ -51,10 +51,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + #if defined HAVE_LD_PIE + #define GNU_USER_TARGET_STARTFILE_SPEC \ + "%{!shared: %{pg|p|profile:gcrt1.o%s;: \ +- %{" PIE_SPEC ":Scrt1.o%s} %{" NO_PIE_SPEC ":crt1.o%s}}} \ +- crti.o%s %{static:crtbeginT.o%s;: %{shared:crtbeginS.o%s} \ ++ %{" PIE_SPEC ":%{static:rcrt1.o%s;:Scrt1.o%s}} %{" NO_PIE_SPEC ":crt1.o%s}}} \ ++ crti.o%s %{shared:crtbeginS.o%s;: \ + %{" PIE_SPEC ":crtbeginS.o%s} \ +- %{" NO_PIE_SPEC ":crtbegin.o%s}} \ ++ %{" NO_PIE_SPEC ":%{static:crtbeginT.o%s;:crtbegin.o%s}}} \ + %{fvtable-verify=none:%s; \ + fvtable-verify=preinit:vtv_start_preinit.o%s; \ + fvtable-verify=std:vtv_start.o%s} \ +-- +2.13.1 +