Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp239577yba; Tue, 23 Apr 2019 23:48:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6OP8JCVYyLTFNpb/gB5OGTrc0Yg4wpNVRiosPNF6QU2AE//ilw7fjxHULQt/PrJX+5gDt X-Received: by 2002:a17:902:9a95:: with SMTP id w21mr31102725plp.74.1556088484318; Tue, 23 Apr 2019 23:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556088484; cv=none; d=google.com; s=arc-20160816; b=WSKSWh5RB7bwOY7hg/tdCqN2onrytSKqCr8ed5+e1sZP/M84pjkCy9IHq88VPp/NVK 2qxSFWhqY8znUSRtXOYUzBXig28zPYlUTmld38jMm8XseWNMZ8p7PEQgWFHk1J7RUR5K X7Be2o/EfJyQ1Th/V+JzyeA2+8vyaf14kZLHpXHKdn23mAHBkaNCQFLIrjgnPiO9F8sZ etPl7ioT3Ff3UfbzZS7bFyBC7mlHh5bj1lCARmMuMRL5NbBelGO+FYLOA6nmRTDChA5I xzPbIY/ZJCNWQYS3mkf90shwnrm4WxwKB8TIb9R4rf3HltDTpcq8FVyMzHxdohmsRkRd KKdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=oDafs3VZXSSu5xoDlOXLdYOrCRqoXXFkxL0xgFY1HzY=; b=GLNwaDKKCj20yvRtpJVTngWXihyAYne3+SN7hmVxEPAcxG0eXUl7fztrV79pZjm4L7 KKV1w4A5T6ZrZroKv6p4t+m/5cIfX3brcSz5PBt8oqsIRHtZotjL333PfmqeA11IbdHZ 3A3KVTODnu2J0Evmgd5UR4o0iGksa99Yk316jCiB2Ndaznnfzmd5EYmSVLVycpXQPHzK 1mFr5qUoziFPX4qgch6ohC8EFOsTguZTglEE8pJNhl6sdPQ3prAdo/PC+SoHtqWi8hx+ A/RU7Qk9blMCwHeZnxkEQMH1LgYdm/0saYr4DJR7Nls27wTeHwfFFLGHYWtGGRIDN6M0 QAVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=KfpSG7ts; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si18776921pla.153.2019.04.23.23.47.47; Tue, 23 Apr 2019 23:48:04 -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=@nifty.com header.s=dec2015msa header.b=KfpSG7ts; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729705AbfDXGkX (ORCPT + 99 others); Wed, 24 Apr 2019 02:40:23 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:35988 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726778AbfDXGkW (ORCPT ); Wed, 24 Apr 2019 02:40:22 -0400 Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com [209.85.221.175]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x3O6e7Tm001458; Wed, 24 Apr 2019 15:40:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x3O6e7Tm001458 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1556088008; bh=oDafs3VZXSSu5xoDlOXLdYOrCRqoXXFkxL0xgFY1HzY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=KfpSG7ts6U5ZM2c+qxbNC9Et/GPrP4zZ5z+uZVVj6GOLhS5N96H5RcyCEFKkXUeMJ JSXwDwM72wBOhYEMOlwDw3ViDXhMFY+hrmARSdb1l/dj7R49pPDkuKdZaOiGMXWfuq McZDjcbqkvZyS+M29JcypOHd98wfJcZQ+Lnh8VxOOniPPH9sfq9NxFryp6d2uCwkFl IO/rQYt/h3sofiuCMoyXlewmcOMPGzyRMAg1q0l2vzSj0WHLG4cO5vkI95kkZxP75F L/HtlpDChBsQTBH1fixjxCL8C/QHYlxkTGSLMrPynEu3AtixOcq4w6ovVSeBB0KX2I 3eFwnk9U6LvoQ== X-Nifty-SrcIP: [209.85.221.175] Received: by mail-vk1-f175.google.com with SMTP id s80so3782567vke.6; Tue, 23 Apr 2019 23:40:08 -0700 (PDT) X-Gm-Message-State: APjAAAU+UdAIJk79KM6AV2HGRLwitjiXRRRzRMNz+e2WNqW4HX92vAVk r+de94n455/PVQD04QYS9h2e8hRAEXAC2U0VbDo= X-Received: by 2002:a1f:2fc7:: with SMTP id v190mr15649968vkv.84.1556088007056; Tue, 23 Apr 2019 23:40:07 -0700 (PDT) MIME-Version: 1.0 References: <20190423202907.234180-1-ndesaulniers@google.com> In-Reply-To: From: Masahiro Yamada Date: Wed, 24 Apr 2019 15:39:31 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] sh: require --Wl,--hash-style=sysv To: Geert Uytterhoeven , Nick Desaulniers Cc: Yoshinori Sato , Rich Felker , Andy Lutomirsky , clang-built-linux@googlegroups.com, Linux-sh list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 3:37 PM Masahiro Yamada wrote: > > On Wed, Apr 24, 2019 at 3:29 PM Geert Uytterhoeven wrote: > > > > Hi Nick, > > > > On Tue, Apr 23, 2019 at 10:31 PM Nick Desaulniers > > wrote: > > > Towards the goal of removing cc-ldoption, prefer ld-option, or better > > > yet, require --Wl,--hash-style=sysv since the selftest for vdso's > > > requires DT_HASH. > > > > > > Cc: Andy Lutomirsky > > > Cc: clang-built-linux@googlegroups.com > > > Suggested-by: Masahiro Yamada > > > Signed-off-by: Nick Desaulniers > > > > Thanks for your patch! > > > > > --- a/arch/sh/kernel/vsyscall/Makefile > > > +++ b/arch/sh/kernel/vsyscall/Makefile > > > @@ -15,8 +15,7 @@ quiet_cmd_syscall = SYSCALL $@ > > > > > > export CPPFLAGS_vsyscall.lds += -P -C -Ush > > > > > > -vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 \ > > > - $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) > > > +vsyscall-flags = -shared -s -Wl,-soname=linux-gate.so.1 -Wl,--hash-style=sysv > > > > > > SYSCFLAGS_vsyscall-trapa.so = $(vsyscall-flags) > > > > What impact does this have on the minimum binutils version needed to > > compile the kernel? > > > > > See his ia64 variant: > https://lore.kernel.org/patchwork/patch/1065347/ > > > He commented a stronger reason > "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" > > > Nick, > Why don't you rephrase the commit log like your ia64 one? > It will clarify this change has no impact. > > > BTW, I think the subject should be > "-Wl,--hash-style=sysv" instead of > "--Wl,--hash-style=sysv" > > (single hash before "Wl") I mean "single dash" just in case. :) -- Best Regards Masahiro Yamada