Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp281176yba; Wed, 24 Apr 2019 00:44:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZbnd6tkPC+C5hOvrkkNsLCtF0He3akW9wvNB2dXDY2oIE8JogNlNUwHVUqwpkmaw8+H6Z X-Received: by 2002:a63:fa46:: with SMTP id g6mr29647587pgk.382.1556091855000; Wed, 24 Apr 2019 00:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556091854; cv=none; d=google.com; s=arc-20160816; b=fwMNp3gLptWye+fil0PeBKGYuwbewg8JB+0bEvK8dqcp8DncDaXecXMHVlHV/W/krK xc6hxpvWoquxfeOWVmgZ2N3wsd5ONzu/TvlFrf3/BzvARsAq+M5c5Lp/no2Sq+FF/l+e TyRS4IY44OuZTUW+o1fAlsmcl4Q0EDB4jeElzqlmAuJ0/D346NbmdAAWiRS3jdVtSS0b bxr4RQbz8kmvPg8huzOzJ2neRmtSi2ajT+F6ImtjLc+uXQQ0UiG1GhoxtDXFEu7V9Dmy XPBEyEAJO5XN++BUBAAXLbbz3L1jd1d663/fwLil2xvlOzW/yBplo5oPWrYz8GZMe9/o rzIg== 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=WnyTu3J5NAIj1IpFkhgPC1wY3fyU4SaEQPnxyOQqVRM=; b=mnWQCV10T6HJFdO+oZZgpLcTLcj5yktF8jF7QIPuNlc4vYkPFHNpBvTV28IgqTwiHq ebaafAClY4qRyHSwzFuENVXNx4Tu421XNltSjg8T9yxZglYqkk/XZS75n0dH3+3qHFVj f6FUBAfdE+K2/5Dy0lVL8cWknuE4dgziZCbKtOME7LCda7bsy10v6PKmTldWm5ifn9Ks bzvv2oVvl36eThWGr3UcZsSJPitAwQaNyMmADDnbNmIRwAKo9qGsD1PvAjLNe0mXWxP0 aYxoF82Sc5RFUDI4CZ4cJsv15JwK8t25iR3HAI4Rpfrj/0N1/OywZ8prT+5g195+zrih bXoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=dfrpAScN; 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 e11si18268582pfd.88.2019.04.24.00.44.00; Wed, 24 Apr 2019 00:44:14 -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=dfrpAScN; 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 S1729840AbfDXGiJ (ORCPT + 99 others); Wed, 24 Apr 2019 02:38:09 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:21898 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbfDXGiJ (ORCPT ); Wed, 24 Apr 2019 02:38:09 -0400 Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com [209.85.221.177]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x3O6bksK031930; Wed, 24 Apr 2019 15:37:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x3O6bksK031930 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1556087867; bh=WnyTu3J5NAIj1IpFkhgPC1wY3fyU4SaEQPnxyOQqVRM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dfrpAScNw0WY+ko66o0foQkhFhpUUUQJnlOaYvpuERRiOHMM1imN2K7QODJoyHDsZ N6x/ua9FC2PHYG5s+QYEIwucmJxW4mlYk0HofN4Y9Dyt8hK4LRqHUCqFyqOqlp91BG yD70Zq1Yj7ZV+2uWi47/Yud/qgE1Qh5BgFuCeKq2agq9tTYc/FTV1ndRJHqcOeyl5e y+JN35P7j/rcqrsi6FYmEdaRbkGwzfSkFnlFaL7aT13zhzoDlu+ACPjuN6k6qg9wC4 h/12xnNAjpks6i+i4YdHYicm3YVcqaT/6uzsGNg0vjGlm99/5y2qCUSpvPVlqsZ4CL EKX7sAnsmbFmQ== X-Nifty-SrcIP: [209.85.221.177] Received: by mail-vk1-f177.google.com with SMTP id h127so3769230vkd.12; Tue, 23 Apr 2019 23:37:46 -0700 (PDT) X-Gm-Message-State: APjAAAUfC7/Xn0kdpBw8YXmUTiCY/bDNIUpVSqEs4Cf6ibi5nG6YZAYW CPbauWzZ38yAqh4a4U7MHZAwBjlMu0hO4xmiosU= X-Received: by 2002:a1f:5343:: with SMTP id h64mr3027965vkb.34.1556087865539; Tue, 23 Apr 2019 23:37:45 -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:37:09 +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: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") -- Best Regards Masahiro Yamada