From patchwork Tue Jul 4 15:50:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106994 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp1195310obb; Tue, 4 Jul 2017 08:51:18 -0700 (PDT) X-Received: by 10.98.204.194 with SMTP id j63mr15835349pfk.137.1499183478300; Tue, 04 Jul 2017 08:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499183478; cv=none; d=google.com; s=arc-20160816; b=NZzl04j6/iPTviZL3Z8UZr30hrbIkuqunVhfZE9z0Ld7ZOQfNHOvNPgxvQvfHgg78H QRH1WqXpiwdLtPINOVh2aSeQ7aepBtwN2sRoOghLzbuh33M+ieEK94vKcD5xhf0wXG0k gn9szbLPP9c/A0Ng0Tbj7GMmoaZmv71IJuIOT5jeRu817ahyFFc7IRh47Se6i1MX77dC 5Jm9Xl2xyZlCyjoHZ4G11VTrSMMXxvphzk3hLYypBTMd71ulQ9t65GM1pDmctV79bEtY RLLsfo0itFjTkYe2f1+Vt5aJDQa7dX94pWr85iPRAwpMmY7KuZ0yZ0RUyj59BPBfDv/5 W38g== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=UA8NTSby+GezxQt/gajLV3nkCk/Gu8JIsJgB37LziWE=; b=YNn+XG6aztpsQ7+4YKEo4gIt458AsylkSTPuITdwMhZvFcsNqf1vx/DpmfsD4ICBXH ThggdCFBJlruI7v+8avXtxBqbP+ULE7bSojtQNIU8GVompjK7Z3UhPKxYyof4Ts0TOaD kTCObaKcQtdNVrlurcbWeUdniVRSSnoRXv5uyuI4VBKEZeHqflKTwcKAhOBigQOgYdP/ jpB7PTPG2F5CLpw1rvgPGjbn9eIiICWSlHjv+4G0IaK4OzTTCVR468cDv0OtpfFZv3rO 8l4WblYb2qxKsG7acooXIN1tAYi2vfem8g5gei1oumESRhwbIpXiewIqIshDXOAMrWG1 pc2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=F4Yf9dbq; 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 d2si14789917pfg.316.2017.07.04.08.51.18; Tue, 04 Jul 2017 08:51:18 -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=F4Yf9dbq; 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 9CFDA77BE9; Tue, 4 Jul 2017 15:51:13 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf0-f171.google.com (mail-pf0-f171.google.com [209.85.192.171]) by mail.openembedded.org (Postfix) with ESMTP id 31CE277BDE for ; Tue, 4 Jul 2017 15:51:10 +0000 (UTC) Received: by mail-pf0-f171.google.com with SMTP id q85so3612660pfq.1 for ; Tue, 04 Jul 2017 08:51:12 -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=076ljz1RdSuvdJDDKxb1LxClfvKziqxdcS5IEgbr/Gc=; b=F4Yf9dbq/dx8iVMHDttBhp8pWuLWQNcYJxCstxiRm37BI2GjJK9lPGJsM8lzm3c5mw R2gQ2x8tqiXmsSPHzqhmk6nlcmlYxzqS8gldLaKfCzYTVmcnBJv2r8vBY6XO/3/D1zMb CioV7Bqw247eHDoo7INrK45ObuCb6AvBqIcFrm3pqC8nkF1iiurwJ/AaV9DyWRujwFqz ZQB4in2qcsrjieUbgQSRjYc4/aZiOKTgAVhkpA6G98aGUjQ7DVoEmelF2JTPqug9VORC 2ehAnDvrCVlJ0ZsznV7yAwT5bhVikno4wVMJht5EDSvlVBtcll+18E938ZY+3AQunWXh 3M1w== 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=076ljz1RdSuvdJDDKxb1LxClfvKziqxdcS5IEgbr/Gc=; b=fOHbJnMquZvtm8J6omoVrG0cnySiZrmIAR/VfaqbeleziYzlwJXg53GzR/gffOEWS7 YB3s23KyDHvKjWynvCTqJ4n8zvVdDxh/gzA56eX92msiBv8K3znO3RYECq549MS/T3hP hSgntSVefgQWsB+9gtXU7iDWsMQ47HAT9YApRVJoyBdqUPVfKbT6f3zqnFmMP0mMHINY 0dwmDsc8ki5rCVAATzstsUOTjHqRTjVgcBbSNh8KwMkatfM+uTrGbEYiHmXlXAQ9Hoq9 XUvgg8w99akzPi0X8TjPYB2i20fALURCPiLSu4nlcLXXTK7kInqOcIELX78FQH3Mv5KK MWMw== X-Gm-Message-State: AIVw110iHyfY0hmkJkwsBBla9QIJeVYyNmhE5yP77n+FKuEthCO9WRQZ ft8FeFyGchFZp2Cx X-Received: by 10.84.216.28 with SMTP id m28mr16990464pli.275.1499183471857; Tue, 04 Jul 2017 08:51:11 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id r63sm36545914pgr.65.2017.07.04.08.51.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 08:51:10 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Tue, 4 Jul 2017 08:50:54 -0700 Message-Id: <20170704155056.12467-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 Subject: [OE-core] [PATCH 1/3] systemd: Do not use xlocale.h 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 glibc specific header which has been removed from glibc 2.26+ Signed-off-by: Khem Raj --- ...se-util-Do-not-include-unneeded-xlocale.h.patch | 27 ++++++++++++++++++++++ meta/recipes-core/systemd/systemd_232.bb | 3 ++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-core/systemd/systemd/0022-parse-util-Do-not-include-unneeded-xlocale.h.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-core/systemd/systemd/0022-parse-util-Do-not-include-unneeded-xlocale.h.patch b/meta/recipes-core/systemd/systemd/0022-parse-util-Do-not-include-unneeded-xlocale.h.patch new file mode 100644 index 0000000000..cad1867a4c --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0022-parse-util-Do-not-include-unneeded-xlocale.h.patch @@ -0,0 +1,27 @@ +From 0c50b8332092178378257c2de800fb6b6b4a8706 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 3 Jul 2017 08:45:04 -0700 +Subject: [PATCH] parse-util: Do not include unneeded xlocale.h + +Signed-off-by: Khem Raj +--- +Upstream-Status: Backport [ partial https://github.com/systemd/systemd/commit/284d1cd0a12cad96a5ea61d1afb0dd677dbd147e] + + src/basic/parse-util.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c +index c98815b9b..a0eb45805 100644 +--- a/src/basic/parse-util.c ++++ b/src/basic/parse-util.c +@@ -23,7 +23,6 @@ + #include + #include + #include +-#include + + #include "alloc-util.h" + #include "extract-word.h" +-- +2.13.2 + diff --git a/meta/recipes-core/systemd/systemd_232.bb b/meta/recipes-core/systemd/systemd_232.bb index d54e92707f..287e07b153 100644 --- a/meta/recipes-core/systemd/systemd_232.bb +++ b/meta/recipes-core/systemd/systemd_232.bb @@ -31,7 +31,8 @@ SRC_URI += " \ file://0019-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch \ file://0020-back-port-233-don-t-use-the-unified-hierarchy-for-the-systemd.patch \ file://0021-build-sys-check-for-lz4-in-the-old-and-new-numbering.patch \ -" + file://0022-parse-util-Do-not-include-unneeded-xlocale.h.patch \ + " SRC_URI_append_qemuall = " file://0001-core-device.c-Change-the-default-device-timeout-to-2.patch" PACKAGECONFIG ??= "xz \ From patchwork Tue Jul 4 15:50:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106995 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp1195452obb; Tue, 4 Jul 2017 08:51:27 -0700 (PDT) X-Received: by 10.98.49.2 with SMTP id x2mr15691558pfx.48.1499183486922; Tue, 04 Jul 2017 08:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499183486; cv=none; d=google.com; s=arc-20160816; b=M2Q2beJW87Frh8nloH1H9HQwgD3FR4ZDyKccxXT8oOdUX3OEQ6EW+RvrZRYQ0zoqrb oBh1DAKV+jWLiISS4LqLexrdKN+RGxd2N6vAiXPcctazyqRnM5lUJXk0u4cXBhRv65G1 2QrtM82xT2ATuiZ6EceP6LXy4tbOH7YNYI8k/tOIYMrCErr+GYoetfwVChgmel8mCqeF XXFzq8L/jBQUSYWq+IaM25tCEpon6D5iZjGtrEGvqDXNjGwyvAdKS4VMyh0i+DoqxhHj UkztMM2J2lUK/BtJCKO42cdGFqoFSomuELzKBuwdbvDZe7WXm3S5nvyitkl3CGmPnOeX r57g== 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=bCIYV+03mZh8fSIlcXlPlPJeVDgfLgGyUHLIPTbNpZQ=; b=nx/3cXWMswbSpIeS9sc+xHN9Y7bYPzjnEBJWu7tE2M1+xd4TCB3um6wSzOqluF2jEQ I1lAx8cJdJ1/D9lenSd6NFEAcggYCEYtQClrFK5uPjE2je60XQ9I7aOnKU65ZCfAfWNA M/7F2HenbSwW6nMfNNGU7JWdHLf1Jgc+Fh/cFevQtZ9q2HRXzsaKOp8aIenudUWckw/O nsyhXZOCuDiZneuk22sRX9l1ip0Zsve/0iqBcdbiCTZjC/7Hi0Nsq0qmJvCH+QFkROzp d2mMMIdJrXSFQofb8nRZD31y5cPuxWy8i2bs8kKbFNDT/ZramFAyk8OicisIcPQKyeZH EFTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=cLDP4rJm; 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 n3si16277026plb.621.2017.07.04.08.51.26; Tue, 04 Jul 2017 08:51:26 -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=cLDP4rJm; 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 38D0F77CEC; Tue, 4 Jul 2017 15:51:24 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by mail.openembedded.org (Postfix) with ESMTP id 36FB477BDE for ; Tue, 4 Jul 2017 15:51:11 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id d193so9442551pgc.2 for ; Tue, 04 Jul 2017 08:51:13 -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=ZKfzVds5iSQOoYAVBcWFX0w3X6CqxkgFpniCD/a5kJA=; b=cLDP4rJmN3B8tzxufTGU7m0ja5xpDENf8x5A4ijMUXf9sFXXndP7pNeM/90X/6SNSl TE0stWzEPzhisjx274VzRSmcLX/OhnThn0TEnK/YtzC+VDZWbGttlgPMizBLyZpL0v8O 6V3wc6RSu9eyVKsZYLORFwORHan61cVs2IiM1/30M/idgfb0Tx1IqgXyZy97ll9Io/B9 6RUBvAiD6qg/u9C9yFQMliPdJ/SFL5ooQ3HNPCXMFvvli6P44uYzIHbHjpO7wB/0QgPC xj2vSNuJiJX6NpklssfdMqOBlD4udWFICjOEJdWNIVUdtOFMuis9Czdq02s4d968Y9vq 6wyw== 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=ZKfzVds5iSQOoYAVBcWFX0w3X6CqxkgFpniCD/a5kJA=; b=lVJ3QiwFpt55Kp58N+FxKeNLli/8Qnd7mdLqLH0MknEIWdr7NrPbA8Mkr2dKsM47uO A9+v3ImCP+ar0eKuoLLrViMlLWwXCldu50+x83ehwEdXDYlbKhwQNEr0Iwo3tNce/tdl 3eDnc/kHx81l7FpFCTb/8nnXqij0ZuB+YsD8tUQf+a6Ww8YFmQkoFvjiObaHaGC9JZiu C/MTAIwpEDcJiL35jp3shkJZrLA4T6F9t+77NyPSebIgOCJYQWkb0QBzxt/mSoY311Re AS+q70Klz2aGeqEeNZ09yguvetFvhuJqrLZO4SfgSx7RUuvVYsJ2WkdNFrViyG47HcPN XJJQ== X-Gm-Message-State: AIVw112l4K3HPiELz2RF9/2kJ/iexuxhhYvwfJpghNZ2aGQe8vmNv7Lp +lNRokE+gS4TJ33W X-Received: by 10.84.140.107 with SMTP id 98mr17304762pls.97.1499183473129; Tue, 04 Jul 2017 08:51:13 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id r63sm36545914pgr.65.2017.07.04.08.51.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 08:51:12 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Tue, 4 Jul 2017 08:50:55 -0700 Message-Id: <20170704155056.12467-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170704155056.12467-1-raj.khem@gmail.com> References: <20170704155056.12467-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 2/3] security_flags.inc: Do not build gcc for powerpc with PIE defaults 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 Since we have disabled FPIE from SECURITY_CFLAGS already, we have to ensure the same with gcc, otherwise gcc (on-device) will be built defaulting to PIE, and such binaries will fail to execute Signed-off-by: Khem Raj --- meta/conf/distro/include/security_flags.inc | 1 + 1 file changed, 1 insertion(+) -- 2.13.2 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index dd713b9818..ab2062b78f 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc @@ -29,6 +29,7 @@ SECURITY_X_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro" # powerpc does not get on with pie for reasons not looked into as yet SECURITY_CFLAGS_powerpc = "-fstack-protector-strong ${lcl_maybe_fortify} ${SECURITY_NOPIE_CFLAGS}" SECURITY_CFLAGS_pn-libgcc_powerpc = "" +GCCPIE_powerpc = "" # arm specific security flag issues SECURITY_CFLAGS_pn-glibc = "" From patchwork Tue Jul 4 15:50:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106996 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp1195522obb; Tue, 4 Jul 2017 08:51:31 -0700 (PDT) X-Received: by 10.99.23.100 with SMTP id 36mr16654174pgx.118.1499183491171; Tue, 04 Jul 2017 08:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499183491; cv=none; d=google.com; s=arc-20160816; b=uz3twVcTs1txSL7RbRVMxKlGKCYfWMhBmIPyxwwxxzUp1h72sOfKkbqr5XHcQZyc6+ cqdsh4TcsM+CeFuKO0zjQcPk/LyAfGY/ObNsYBv/nLLtXBSVH6+RWIQRJ45E7IVKXCqq 3w+AgUresA4nCD0Cmzzd9PaC+KXvlcrTioQ5UTAe2tefnUT6qYdMRtAlO+Jrxojd1JxR jBe3TUJrNPLKGIMks/T5tvrybFOHHjFog2WMqiXXABoGwyGMMxwX2YIGrk5yRTjxeICZ q+1hHIX9pZ37ubsDhl2CdXv1vddUOvkw/MiyUkT3Gy1WQiVdeJILTPebTG5ZVZbyqCg2 6+sA== 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=hAL/lv37OUdH0f2Rp5RgW8rSGfPyoZiPeWvtyigz9zw=; b=u4eXJ35P2WptGckGuj9bD1PLDJPN6Ornl9VslQWtZ+MHm5Swoz9Yhb+DHQA7/7l7df 9cpDp8HI4p6mNJYptd2XU+ANPuIj8wZ/EWaB9l50WiANArstSqkLHhS2JZo8lguXapLv 4AuxxVswfUlSEU/rh26saQKi/duu6zr/kUZJ6SCCQlxa9UA48HtqNIDZJEJaNhBCAtBz sAJvZe1E3CY6Mazs2QsKZrN0dLwSH2l2xYDNzaRwmKuXOzi/YEE4SJWAti3HMFf0Ivxt 9J1HPEusIe6I/Nfmtu33zj3LtlokVHnYbgwvV9kHmK+29UCvKPkDTX2ASV8nBb/TUHy3 BUEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=b+nal5aM; 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 z87si14532790pfd.125.2017.07.04.08.51.30; Tue, 04 Jul 2017 08:51:31 -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=b+nal5aM; 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 33AB277CF9; Tue, 4 Jul 2017 15:51:25 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by mail.openembedded.org (Postfix) with ESMTP id BA09077C29 for ; Tue, 4 Jul 2017 15:51:13 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id j186so27767069pge.1 for ; Tue, 04 Jul 2017 08:51:15 -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=zZuJ5a5O5Nd8+lXK/a4A/TiMmaxDB3VrsdHtwjmgskU=; b=b+nal5aMvcFqh0Lr65XAYenInwNlPXqSDcenUo9/BWiugN30OwS8rQFpyg+Kz0jcbl y9WXTzaPakUFrmlOi/6fJrMDXLnVF0Lw74p7k2WV2c+RO1tGWSt9HD4zMGwabzjQxGhw kgHjEuO+0Lj5giF2OFls93mzfPrTx+IjVcaAgNAxExVxGon5kYH7cqlM6XCHc+Tgy1O3 wnNu5bMAHjAPwRDsFH1gXAjOfoCJpBGnpCZ4Rb8cfXRlhZq3E44EeNgyPx1DNn2XXY3M A+d4/yW9SVCEL/gb3tzGEqyxVdn4kLnDykXhUXYhLmJMS0j51li+2WclBi1vfRRLla8L Znkg== 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=zZuJ5a5O5Nd8+lXK/a4A/TiMmaxDB3VrsdHtwjmgskU=; b=AHFdKWfXMbdwplawf3GiqLeObubqBY9V8+0f9LchpaP682e38ID2KhTKEwfi7RhzdL qRseLXmTvR/lwsx/7RBOZMlPwlm8bULSdBZuGImXzTzV8M0l3RFS2zYUiwrLYD/soefl EOj0s+22Flp9VvPspDRF4F5ViM6viETLv2KYJxamKVkt9quEBekY8P6thEGmpWZUbCgt c4hDY38X2F2LvsAYPCRu7EGT/kRagW6U3Dbc9r/9kWVrg25tcU0zLh3K9DQw25czW/s8 ZSNcO74V1JhUcB9YIZkM/tQa3+0WPQwt7Nz9Pit/54ksnhp59/qDso7ze199iIN8kP6y eMqg== X-Gm-Message-State: AIVw111HXCLDcuEl5q/RLoEXTR2NnuxDaQwcW99oLM1hxYtga8fn1+bf fej/z7pl78I0Jl4u X-Received: by 10.84.137.1 with SMTP id 1mr17604713plm.128.1499183474475; Tue, 04 Jul 2017 08:51:14 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id r63sm36545914pgr.65.2017.07.04.08.51.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 08:51:13 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Tue, 4 Jul 2017 08:50:56 -0700 Message-Id: <20170704155056.12467-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170704155056.12467-1-raj.khem@gmail.com> References: <20170704155056.12467-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 3/3] ovmf: Fix build with toolchain defaulting to 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 GCC44_IA32_X64_DLINK_COMMON and GCC49_IA32_X64_DLINK_COMMON variables add to final linker flags that ovmf build forms on its own, so trying to inject it from environment will not work. Here we add option to disable pie during linking, which should have been accompanied with correcponding gcc/cflags. Fixes | /mnt/a/oe/build/tmp/work/i586-bec-linux/ovmf/git-r0/git/Build/OvmfIa32/RELEASE_GCC5/IA32/OvmfPkg/AcpiTables/AcpiTables/OUTPUT/./Facs.dll: Bad definition for symbol ''@0 or unsupported symbol type. For example, absolute and undefined symbols are not supported. Signed-off-by: Khem Raj --- .../ovmf/ovmf/0001-ia32-Dont-use-pie.patch | 27 ++++++++++++++-------- 1 file changed, 18 insertions(+), 9 deletions(-) -- 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-core/ovmf/ovmf/0001-ia32-Dont-use-pie.patch b/meta/recipes-core/ovmf/ovmf/0001-ia32-Dont-use-pie.patch index 7ce20be54c..5bb418b954 100644 --- a/meta/recipes-core/ovmf/ovmf/0001-ia32-Dont-use-pie.patch +++ b/meta/recipes-core/ovmf/ovmf/0001-ia32-Dont-use-pie.patch @@ -10,10 +10,10 @@ Signed-off-by: Khem Raj BaseTools/Conf/tools_def.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template -index 04a1bcb210..84c5f84f93 100755 ---- a/BaseTools/Conf/tools_def.template -+++ b/BaseTools/Conf/tools_def.template +Index: git/BaseTools/Conf/tools_def.template +=================================================================== +--- git.orig/BaseTools/Conf/tools_def.template ++++ git/BaseTools/Conf/tools_def.template @@ -4336,7 +4336,7 @@ RELEASE_*_*_OBJCOPY_ADDDEBUGFLAG = NOOPT_*_*_OBJCOPY_ADDDEBUGFLAG = --add-gnu-debuglink=$(DEBUG_DIR)/$(MODULE_NAME).debug @@ -23,15 +23,24 @@ index 04a1bcb210..84c5f84f93 100755 DEFINE GCC_X64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mno-red-zone -Wno-address -mno-stack-arg-probe DEFINE GCC_IPF_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -minline-int-divide-min-latency DEFINE GCC_ARM_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -mabi=aapcs -fno-short-enums -funsigned-char -ffunction-sections -fdata-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=soft -fno-pic -fno-pie -@@ -4369,7 +4369,7 @@ DEFINE GCC_ARM_RC_FLAGS = -I binary -O elf32-littlearm -B arm +@@ -4369,9 +4369,9 @@ DEFINE GCC_ARM_RC_FLAGS = -I DEFINE GCC_AARCH64_RC_FLAGS = -I binary -O elf64-littleaarch64 -B aarch64 --rename-section .data=.hii DEFINE GCC44_ALL_CC_FLAGS = -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings -DEFINE GCC44_IA32_CC_FLAGS = DEF(GCC44_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables +DEFINE GCC44_IA32_CC_FLAGS = DEF(GCC44_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -fno-PIE -no-pie DEFINE GCC44_X64_CC_FLAGS = DEF(GCC44_ALL_CC_FLAGS) -m64 -fno-stack-protector "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables - DEFINE GCC44_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20 +-DEFINE GCC44_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20 ++DEFINE GCC44_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20 -no-pie DEFINE GCC44_IA32_X64_ASLDLINK_FLAGS = DEF(GCC44_IA32_X64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable --- -2.13.1 - + DEFINE GCC44_IA32_X64_DLINK_FLAGS = DEF(GCC44_IA32_X64_DLINK_COMMON) -Wl,--entry,$(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map + DEFINE GCC44_IA32_DLINK2_FLAGS = -Wl,--defsym=PECOFF_HEADER_SIZE=0x220 DEF(GCC_DLINK2_FLAGS_COMMON) +@@ -4451,7 +4451,7 @@ DEFINE GCC48_AARCH64_ASLDLINK_FLAGS = D + + DEFINE GCC49_IA32_CC_FLAGS = DEF(GCC48_IA32_CC_FLAGS) + DEFINE GCC49_X64_CC_FLAGS = DEF(GCC48_X64_CC_FLAGS) +-DEFINE GCC49_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x40 ++DEFINE GCC49_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x40 -no-pie + DEFINE GCC49_IA32_X64_ASLDLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable + DEFINE GCC49_IA32_X64_DLINK_FLAGS = DEF(GCC49_IA32_X64_DLINK_COMMON) -Wl,--entry,$(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map + DEFINE GCC49_IA32_DLINK2_FLAGS = DEF(GCC48_IA32_DLINK2_FLAGS)