From patchwork Fri Aug 17 06:04:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144454 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp372664ljj; Thu, 16 Aug 2018 23:05:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwcrBslZo4s60RzgA2d2vDxZRgczzWYArQwT8wFIrHkqkBP8wiKTg6lCv/pxIsiGs/q6tRG X-Received: by 2002:a63:f616:: with SMTP id m22-v6mr31255714pgh.293.1534485901855; Thu, 16 Aug 2018 23:05:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534485901; cv=none; d=google.com; s=arc-20160816; b=Loq74TC0+qpHaKnYbVGp6n+9MpM83JuZviKDjehCqvuadSOyY5woHX98+FSvvw/scW l2DCMvVdYe9SPUp28hLqPQI3t9WnOKkjDjnYygpPz76SFU7uQrL9mz8cFV1quCeqwhgP S3gxVNDUk1xsQL66FA9QXiC40SowC6/XY6VbCsbLdZTc6vR5oH2xV0fP4VSA61k4VEvk gOhpCQJyRSxpX1fg6S51cPIfUMFyi4KPKNs04hZs7sbtkc26wFktFMA7Uwbphkv/Z48o f2ppqCPawUFlVpvNLgpNrJm5WcjDGKBMhdYB7YQIsdx+3EFqg3BVm0zCWA7GoCTsWI6G i80w== 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=MxnZ+q4APzMB2/cReEI2Xl5Qe5t+zN+jAeeiy0vv5Lk=; b=gvr7OWQOo4Xu9FKZjJsg0GuSWLa+H96Oo7NYcQupG2y91/CvMIvPHWOJLn+TEhXrNA jlL4JlOgRB0vzBJ0JT1JwyoFFSDLLN8sCIhlxHuzHQi7jKBnC7LPHlDeBZRfmilojTpE IffEpytj3r9MAVJdMWIPD+2RsJYJm983yf/6/jsX5zf4pozr/dTgYzrwcwdBhsYzqQRt cjgQaEYZfGom3fEgjpHY0/9TRQatMTgqNhqRlUwyAbwD44zyg6JihjuLEdDSRYqhP8oY feiHWL4vKW9A8U3DUFOUFj1osYCr7wdtHrVq+ygAcz9AiU1RLIX9fmKgpEbVgjE4jQZQ eYdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=urrflGDJ; 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 ay4-v6si1362789plb.201.2018.08.16.23.05.01; Thu, 16 Aug 2018 23:05:01 -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=urrflGDJ; 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 67D2F792E3; Fri, 17 Aug 2018 06:04:58 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id E3F97792CB for ; Fri, 17 Aug 2018 06:04:56 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id b11-v6so3063977pfo.3 for ; Thu, 16 Aug 2018 23:04:58 -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=aRwH16y3FbAMWaCGvwYkkhLhkfCbhgR8G/jyQGSXQkg=; b=urrflGDJ1dlKeOBWnzRIp+QJreVQDBAM8+vcVmA71+ZWzAHvjWBbX9fPWjS6fOcPkq sYvhLFZhvY8WxHTqP2s4z3j4o+LF+LqZKWuifq3M1uDKEJjCUTk/cdqfl7pnr/SPd/rs Vf8Ob8/JQgmjzNToTrgUCp1/0KqYkn3zyXVce2SFrmUkUqjVOINzpkdU5ZpEPc2lKcQx +GMGibW+FCyPiRU1kSkXBgaj3v1pnFiqISD5tfzYq6b0FL9a6xrfqlwL1gJHoS483HzI EIuJMM7xJP5fsDIRgmsFrZs7ZagXo1uhkddGxCz9CxjqkyiawbiGjyxnDVmBoErKUk4v +Tcg== 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=aRwH16y3FbAMWaCGvwYkkhLhkfCbhgR8G/jyQGSXQkg=; b=fMO8oKJXPGj4VbfQXXQPJ3m960HE+tsft1eszzORJFuPhJDFW2QEar9IfWkvuLIIAh KTHmLh0Z+rxTXBtcoWHwl2zuK+i30Qh0fZauR/ju+PeIcmSfs6ffgBeLM36+ROfOpexn zfDsmsiyetjzOotcshuCzkhmBm5vNhTSG724dKk+LPyqEDJ3uLSGISg27clF1x69/uzK Rl0ZD3HiqLkh1JprX2UVZr8RN9Y04vdIKYR/dY6X1EZHad6+ICroKPoMYpLFkxoQj3wX XgmrpxkXw2bkyCipXWZy8eIFV6y6Ipa4nqURJJnfFa1NEQyIyBlWzlIPqb4FT2DQYseO asUA== X-Gm-Message-State: AOUpUlHZa88Q7Gh1/59OEZwpAWTh6Zwr4KvVyCQ7Cznb36maRbgU4BX1 nhqBtZ0gH64ydxa90CvE+30qm7ZF X-Received: by 2002:a63:bc0a:: with SMTP id q10-v6mr4417705pge.60.1534485897553; Thu, 16 Aug 2018 23:04:57 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::f217]) by smtp.gmail.com with ESMTPSA id p11-v6sm2036724pfj.72.2018.08.16.23.04.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Aug 2018 23:04:56 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 16 Aug 2018 23:04:47 -0700 Message-Id: <20180817060447.23683-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 Subject: [OE-core] [PATCH] powerpc: Remove pie flags from compiler cmdline 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 Original approach to add -no- flags cause link time behavior changes where packages start to lose the -fPIC -DPIC in compiler cmdline and this list keeps growing as we build more and more packages, Instead lets just remove the options we dont need from SECURITY_CFLAGS this makes it more robust and less intrusive This also means we do not need to re-add pic options as we started to do for affected packages Signed-off-by: Khem Raj --- meta/conf/distro/include/security_flags.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) -- 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 52e1e4ebc5..4e20a4d0f8 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc @@ -28,13 +28,10 @@ SECURITY_LDFLAGS ?= "-fstack-protector-strong -Wl,-z,relro,-z,now" 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 = "" +SECURITY_CFLAGS_remove_powerpc = "${SECURITY_PIE_CFLAGS}" +SECURITY_CFLAGS_pn-libgcc_powerpc = "" SECURITY_CFLAGS_pn-glibc = "" SECURITY_CFLAGS_pn-glibc-initial = ""