From patchwork Wed Aug 15 01:40:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144261 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp254996ljj; Tue, 14 Aug 2018 18:40:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPypby/EMbiWNKEjDd0V1t4K1/VmPxVpV2JqiWUyoklGWi05dh+G2e3ICWWap81cRCpsLQnM X-Received: by 2002:a17:902:3e3:: with SMTP id d90-v6mr22551307pld.12.1534297246305; Tue, 14 Aug 2018 18:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534297246; cv=none; d=google.com; s=arc-20160816; b=Bg881omj3x3LhLXpg01wMw9N2CMDEbDIOE2vziLGFBXMGceaSm1XfIM+h9CaICahzS XNajBuel2PtTtmg78uVtYaeo5r6ZbSWwpH0GtXcDGqScCC030jDKdPWD46qIMKOCkdQ9 taNr8Lw+GEKKrXajQTUBRacOttj59dbWqnfY1wqmwtHllSnVoo7sOzGXR2Wi9BWLC/aU MfoCPW3xQOcHAikAJHpA5fpayKzq17j1OR8u4aLIeoBOybBPPRJpss28a5XQacC+4COy RmXze5IA+WWaN10frkNecfUB5BSy9/qns5E/MowiAt/6bePm8/FtJiDE7fkfXjk3OVKG K27A== 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=GBAj6B2Xi4oC+1PDgUB39T4qsLjQtnrXXrx62kiMvw0=; b=sgLl/MG27UHljv4x/9hK4vvQCM0QMPkoWlA+TxvHyDMNJQsAG9TCE6mD+wygkwEcee J40S64F5OcDBjwkDNgYyAd7Yag6sUysiVQn0+2ETncDlYUuRy80wta4RrR2wth685OQq FjLp/bcXeDgoP7TauOCItkB/hHm7wKGmPVQMNhsTRVX3lHEvAwLLtIK/5xAMujKZO7NB aAyL43xTrp9T/iHoTQFLsg/DcyeX3zskQiTPInUDISpKgk8Ql5AQtgTmX/Aw02QTW561 lb3LiGn7L/tNF1JzRzVD902XJ3oNvn8sPSo6i+KuC8JHaS5qteCaP17EnLfVYWafgZxh TMkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=XMgqJNCc; 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=QUARANTINE 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 d7-v6si17473333pll.162.2018.08.14.18.40.45; Tue, 14 Aug 2018 18:40:46 -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.s=20161025 header.b=XMgqJNCc; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B752D790B3; Wed, 15 Aug 2018 01:40:43 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mail.openembedded.org (Postfix) with ESMTP id 7DEC379086 for ; Wed, 15 Aug 2018 01:40:15 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id f1-v6so9903790pgq.12 for ; Tue, 14 Aug 2018 18:40:16 -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=NjGXdPC6KCLNa4GTUkv9PnGa5JUVB3N7lAKLUiGKQ1c=; b=XMgqJNCc4yX0xysp7i45OhleM3VB+Hm8yezWFFMko0Ig3Jo3NMB4bLwugai29aU9kL zwWGL29gOrlxnTju/+/7/imb0ei2JnKuPvXnvavBOubtTMYz1ZZysVB8iu4jqqyROJoM mgPM9JSJfo1i0mqHebrHURGDXKgOC495b4etJBlwOykxS036y+fNZ4G1Wuzi65eUo3rI plM7eo/xvdLnZTDpyx12z4OR21Q0tfoA8tEfqAK3sKOuBIyhZpgr/eu/6XSt09cSe6O1 uImy3ccWFZOy107XP6e0KzDsaAvgPzoFWx7bI68er+22+f5eO8ZZw4woMtOvIIRoMclL LtZw== 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=NjGXdPC6KCLNa4GTUkv9PnGa5JUVB3N7lAKLUiGKQ1c=; b=SGjW4lAEUgDmZYUfiNK5+4uovq8te/FnlGCBZzj6iiZAKp0yXGWp170u6FJG4mfqyZ B8RIIlyppaYXeIVNCykCR/t7mPmbVztYLh3jpB7D0tPdDFruS2B9T+UsE0ZNUIIxysUz ksr8j7nfFDdQFn2tYXuxi11c1g9rchnVlGwi1P7TKvBraKgG4coruI79gxHnvnEih2w3 uJEaeWkbPHgjEWPZJ2bwvR0EgxC5RvA0M6WOd+bfBABtPVeMPxKhOBQsCWlobCkucRrh 7eOjSv2cqs8sWgOP2Q5UHM8/N+n3bvzxa0uZbT/6A9usNBq6rC9OJlIyg//Ub7pHj90i XBTQ== X-Gm-Message-State: AOUpUlHzkeyFlTVxLZaMOe1FcQDa2NtNyMepmsu9GeWyi2qEBpFeGjvf PdjYQ8xtwpmnzh2ayRNnXTMHXdzo X-Received: by 2002:a63:f616:: with SMTP id m22-v6mr22866984pgh.293.1534297216247; Tue, 14 Aug 2018 18:40:16 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::f217]) by smtp.gmail.com with ESMTPSA id j15-v6sm25327387pfn.52.2018.08.14.18.40.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 18:40:15 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Tue, 14 Aug 2018 18:40:05 -0700 Message-Id: <20180815014005.30479-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180815014005.30479-1-raj.khem@gmail.com> References: <20180815014005.30479-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 2/2] security_flags: Add PIC to cflags for some recipes on ppc 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 Fixes issues related out of range R_PPC_REL24 e.g. /usr/lib/xorg/modules/input/libinput_drv.so: /usr/lib/libinput.so.10: R_PPC_REL24 relocation at 0x0e8602c4 for symbol `libevdev_has_event_code' out of range Signed-off-by: Khem Raj --- meta/conf/distro/include/security_flags.inc | 3 +++ 1 file changed, 3 insertions(+) -- 2.18.0 -- _______________________________________________ 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 6245e89ada..52e1e4ebc5 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc @@ -30,6 +30,9 @@ 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 = "" +SECURITY_CFLAGS_append_powerpc_pn-libdrm = " -fPIC -DPIC" +SECURITY_CFLAGS_append_powerpc_pn-libinput = " -fPIC -DPIC" +SECURITY_CFLAGS_append_powerpc_pn-at-spi2-core = " -fPIC -DPIC" GCCPIE_powerpc = "" GLIBCPIE_powerpc = ""