From patchwork Tue Apr 23 21:11:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 162732 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4251895jan; Tue, 23 Apr 2019 14:11:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmjfP8krADGpCqyq8X/3mkD+rlet2hIJ5gD/5UUFLRWk5gS7fYBh3d+/nKy0RJAIaptoKY X-Received: by 2002:a17:902:e407:: with SMTP id ci7mr28234228plb.219.1556053886385; Tue, 23 Apr 2019 14:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556053886; cv=none; d=google.com; s=arc-20160816; b=S2yU42HAPwYdc2OhO/dVv7RBBJBxGl+imab2n7Bjt2jlq6+8jCSwssQ9JWycBYrdB3 bmjsaggw7QRcllILZiDYfP7JPTwpqIDmxfgPwGbqEjDFdZVbeFbxVglev1KMhoBFWnX9 Yefb8wfZ4MGTJcfs1Wh6l/DO+/4xt1Zg5Sth2s9exqG5iTBkKDTc1Mxk80l5eyuRhqk1 LnuFDrDU9dSIXx+2Y47p6WCql7uIix+ytlyssY+HduN+hY+sqH/zXHCwg46VClhxhEkA rPn6SmzaeiSx3VPGnKZTmjZn1MhHgJvn+mR0Lmmw2V7VHgANzUm7zBwexgVAStQlmiL/ 8lTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=eHYZmjesflQdPVGOTGQwO4393GXn5tkz07pTFvSiuzs=; b=aimu6HsSK2EV5tRS74sbGc1sv/fYo/cQ2jAPVVmVfMid4uaMbjCEix/daDei/5LavU Ccm1uRZd67dvoHBVjLPzj7bjWm5bDlXHfOcqGrwlh+ZOG1y0JfUPmH2OkiwCIOcii6d5 DrubosmDjkwwqt2GR5yy/PCnacxwKcbQoa9e3KqSkr99PkTEgPlJJm2RCOqYo/sHKd/v 7Fhc9avHR8r5r9A25/GQdN8EsYqj1bDKLGfobFp2SvtgbzEjP3kajVQFD+nKrqTUFHn3 91fpWrsbboEP46DtLUsXIeLL3Tco3A4dNHqJ/KWdOmMPaNh1GefrvGcjwkRR6ixCrtnX 4nVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JoV0DWkt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc1si16426969plb.55.2019.04.23.14.11.25; Tue, 23 Apr 2019 14:11:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=JoV0DWkt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727487AbfDWVLY (ORCPT + 30 others); Tue, 23 Apr 2019 17:11:24 -0400 Received: from mail-qk1-f201.google.com ([209.85.222.201]:38749 "EHLO mail-qk1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfDWVLY (ORCPT ); Tue, 23 Apr 2019 17:11:24 -0400 Received: by mail-qk1-f201.google.com with SMTP id z19so11532622qkj.5 for ; Tue, 23 Apr 2019 14:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=eHYZmjesflQdPVGOTGQwO4393GXn5tkz07pTFvSiuzs=; b=JoV0DWktfcvqI23dn2nF/pzJYfmDnrGO6DLOHhfm/g5OBEdGH7oA0Q5TOmf19zZAaj Q60IUoBjPZL39JkzbYjAO7l6GMwxpXnq1wEG8XgusrrYQVYtiA9g6jneFurYicXl+xSC qMS48VdntQhrXMpnnYMv0GMmCfrI3gj0PCPD/kxdao4CZllYceM+0GVfK4esyjY8ef3/ FMxMTYl+zc9LYZ/kbIADFqFRmmi83ENVLSsGuTRJvCgmd9EjwqQdy5yaaNy/aLrfnYdQ zSDWWRtFJs9jB0BfTS9KpoESyRcwDiZRmJOj5rvAaboL3Tlzk5CMQompoROIODMjs28W 1DEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=eHYZmjesflQdPVGOTGQwO4393GXn5tkz07pTFvSiuzs=; b=mFbshJBNnGpvgZCZM24DKbUM6pMO96QQXaaZRMjNye198gpuvFV4isW0iLRrdj1Vcp 97mTyk8l76our7fraDWpDxrqiDPFsYkm3lY0NS4qPCb1f/qPEawOVL70mpRxuZRGRkdH j8IyDnwEDpg029TXnZL5Hvz9ffxhJ+xjdTJJ3ru3gUmtQTBinSA95981BwNMdffPPj3/ 0tOGLbElo49xmv66VngMeSRQsqWEw5L0/z9QiiF4NobwGLmZVjfYsUm/chgkQE6zHgcx TiWl2S8NdTYnqBa4uBTqzn4dVfsYDN8mGbYwY5BT2EeK+paF0FqWUgadb47Dc/BIzSVb 4afA== X-Gm-Message-State: APjAAAV6SDa/hAN43suTydUiweVwXAZ3mF913F6PNb9PiKQEQ/5SlEoC VRrWDuF3xbJsE4ZjTEaLe0DvjnQVkW/nSMld7y8= X-Received: by 2002:a37:9902:: with SMTP id b2mr10745835qke.239.1556053883187; Tue, 23 Apr 2019 14:11:23 -0700 (PDT) Date: Tue, 23 Apr 2019 14:11:14 -0700 Message-Id: <20190423211116.261111-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog Subject: [PATCH] powerpc: vdso: drop unnecessary cc-ldoption From: Nick Desaulniers To: mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org Cc: Nick Desaulniers , clang-built-linux@googlegroups.com, Masahiro Yamada , Dmitry Vyukov , Nicholas Piggin , Andrew Donnellan , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Towards the goal of removing cc-ldoption, it seems that --hash-style= was added to binutils 2.17.50.0.2 in 2006. The minimal required version of binutils for the kernel according to Documentation/process/changes.rst is 2.20. Link: https://gcc.gnu.org/ml/gcc/2007-01/msg01141.html Cc: clang-built-linux@googlegroups.com Suggested-by: Masahiro Yamada Signed-off-by: Nick Desaulniers --- arch/powerpc/kernel/vdso32/Makefile | 5 ++--- arch/powerpc/kernel/vdso64/Makefile | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) -- 2.21.0.593.g511ec345e18-goog Reviewed-by: Nicholas Piggin diff --git a/arch/powerpc/kernel/vdso32/Makefile b/arch/powerpc/kernel/vdso32/Makefile index ce199f6e4256..06f54d947057 100644 --- a/arch/powerpc/kernel/vdso32/Makefile +++ b/arch/powerpc/kernel/vdso32/Makefile @@ -26,9 +26,8 @@ GCOV_PROFILE := n KCOV_INSTRUMENT := n UBSAN_SANITIZE := n -ccflags-y := -shared -fno-common -fno-builtin -ccflags-y += -nostdlib -Wl,-soname=linux-vdso32.so.1 \ - $(call cc-ldoption, -Wl$(comma)--hash-style=both) +ccflags-y := -shared -fno-common -fno-builtin -nostdlib \ + -Wl,-soname=linux-vdso32.so.1 -Wl,--hash-style=both asflags-y := -D__VDSO32__ -s obj-y += vdso32_wrapper.o diff --git a/arch/powerpc/kernel/vdso64/Makefile b/arch/powerpc/kernel/vdso64/Makefile index 28e7d112aa2f..32ebb3522ea1 100644 --- a/arch/powerpc/kernel/vdso64/Makefile +++ b/arch/powerpc/kernel/vdso64/Makefile @@ -12,9 +12,8 @@ GCOV_PROFILE := n KCOV_INSTRUMENT := n UBSAN_SANITIZE := n -ccflags-y := -shared -fno-common -fno-builtin -ccflags-y += -nostdlib -Wl,-soname=linux-vdso64.so.1 \ - $(call cc-ldoption, -Wl$(comma)--hash-style=both) +ccflags-y := -shared -fno-common -fno-builtin -nostdlib \ + -Wl,-soname=linux-vdso64.so.1 -Wl,--hash-style=both asflags-y := -D__VDSO64__ -s obj-y += vdso64_wrapper.o