Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp788833pxb; Thu, 12 Nov 2020 17:05:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxeTH1fc935CrLTEjLonObZtqGiNZpl+yi+xI/6VKZaXm9iSkbDJb2KyLOeSPnpWv0KOSPl X-Received: by 2002:aa7:c617:: with SMTP id h23mr65987edq.154.1605229524720; Thu, 12 Nov 2020 17:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605229524; cv=none; d=google.com; s=arc-20160816; b=F9Ve8zAvTUT+t++ohauMkp/XeD0gqKnHa7SKRReOJyt83yghmVpJQU9UBi+IcYavmH U9j1CURx9DAxpKr2NQMH5MBEPYF0BmZhvFnvDWxcLhG/i9HZNvrjqQQjWv+Hv8pAvC2f 87mSg043oW/J7mr95oRIqkS6+24oDpmaiVJmjeA85TJSECLng3eDCs6APnRSzNQPsHNR f3AnXSC/9He7cprw7CZQTDBAQwH095pSqvRhIfxbqRRU1Jf5shl1AAMA5vk1wkn0RiT9 QvfjyHt7RBNGEgYDbqOFgsuqpKAXmB4hTzMnzd5WCirEIWjdYtmYADaScGblaw70i9YE y9QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4rHcsSn4tvPHdEd3aSA+VI5udp3Ct0q3o9hwij9UMEQ=; b=igj5C+m7MlDlDZNIvKbcv4WZDnKUaGD7YC6qkaWVSOJxbrjxBulOCLVv1bQg7oDTvt 3gkk4ZvvbIGiVLaCNglEPvAQ3mZCVyJv6FJLQJizqNg7iB9I3juHrGAXdh3l9Cz1twq4 Ijz5MRKmNmilQBzAzjV7vWuesmsEwre/J5dpDUxw7W1RScExXZWB3u2+r+FsOPa0vZJ0 RuM1m+mcoZ3Ewu2Ev8ZFqyb9pGmmvguk9xvV06yk34Npzf8oP+gJzBNROhWvIDijaLo3 G6sMZTEVSRi6Ho2q6AGO/IJBMXHr7sfaJaVSLYkOVd4ZJkCJVsmRgtUsEHjfgVy5mBOT X66Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZFi5IgqO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t1si4596927ejc.524.2020.11.12.17.05.02; Thu, 12 Nov 2020 17:05:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZFi5IgqO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726216AbgKMBDg (ORCPT + 99 others); Thu, 12 Nov 2020 20:03:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbgKMBDf (ORCPT ); Thu, 12 Nov 2020 20:03:35 -0500 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89C87C0613D1 for ; Thu, 12 Nov 2020 17:03:35 -0800 (PST) Received: by mail-ed1-x542.google.com with SMTP id e18so8724445edy.6 for ; Thu, 12 Nov 2020 17:03:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4rHcsSn4tvPHdEd3aSA+VI5udp3Ct0q3o9hwij9UMEQ=; b=ZFi5IgqOb9K+M2xVzFZ1Dj4wIiazGAiIKRobu7yknmcbmQ6bQvP0kH99tQFLNAOPlB 0v99P4TViqiGe1DeMXs/6Vcv0hKoYpmnjugEwpflxekpA8YYEhn0krqLedZpWiC72ZQU k8o/k1XZd2BJEnheNsLiTSEQKS7vo/2X7KxBIKfrUXng4pGTPSdYRyv+wxl7kddmJjBh b+WIGyhV2hufXGRSLOSvsjfdqE/Oa8DFNXC2F/lYLtrbaYwspxeFIPDqKXcOITKqaOBk xsErUSJBxlbodtdR2iX+6AVPlfAehuEW7umj43T6Gs2I52CEcdbft5Z0xW5x9thRZgNx AUIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4rHcsSn4tvPHdEd3aSA+VI5udp3Ct0q3o9hwij9UMEQ=; b=dlqoMPBsM7PHLOTt6iRNUAMd3/dueAaRmOV/QUyzLGGpcSrwME8s8XatQnpBBJu8t8 vlGE5s+qK/DriniTzrkF1MGa9ax2IbRUIVUf00ITBF+SknPtSP/Vtr3b6Dx2gYv5C+E8 nMjQ4ZWeKrWExO0/QY+2PhBU0TVir3e4TIIYu75zrq2tuwRare3LkMpxRpX2N3v1paYo HIY5eNe03zBihuFU1YmnjniOrmHUOXwJv2tuDXivnPHBHV78gTXm2wM+PNTIL1EgjLxu BS0bMVpS8bAKtwaVcDZT6ryQekgnTsODgA0SqJCi/P5rKvAtKI+Hy09m7I6l6hLsnNQl gDAw== X-Gm-Message-State: AOAM531gGCPom6UkKOp5rllZDQK8OWRvYzNE+zsntO0S72dlRhv21NDn gP8hZfsI6eu86tY7L3j6yRQyDhr3SrKIaec0G0IkBHcAxA== X-Received: by 2002:a50:99d6:: with SMTP id n22mr19914edb.261.1605229413879; Thu, 12 Nov 2020 17:03:33 -0800 (PST) MIME-Version: 1.0 References: <20201108203737.94270-1-natechancellor@gmail.com> In-Reply-To: From: Bill Wendling Date: Thu, 12 Nov 2020 17:03:22 -0800 Message-ID: Subject: Re: [PATCH] riscv: Explicitly specify the build id style in vDSO Makefile again To: Nick Desaulniers Cc: Nathan Chancellor , Palmer Dabbelt , linux-riscv@lists.infradead.org, LKML , clang-built-linux , Masahiro Yamada Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 4:53 PM Nick Desaulniers wrote: > > On Sun, Nov 8, 2020 at 12:37 PM Nathan Chancellor > wrote: > > > > Commit a96843372331 ("kbuild: explicitly specify the build id style") > > explicitly set the build ID style to SHA1. Commit c2c81bb2f691 ("RISC-V: > > Fix the VDSO symbol generaton for binutils-2.35+") undid this change, > > likely unintentionally. > > > > Restore it so that the build ID style stays consistent across the tree > > regardless of linker. > > > > Fixes: c2c81bb2f691 ("RISC-V: Fix the VDSO symbol generaton for binutils-2.35+") > > Signed-off-by: Nathan Chancellor > > Thanks for the fixup! > > Reviewed-by: Nick Desaulniers > > (I'm curious what --build-id linker flag does, and what kind of spooky > bugs that led to a96843372331?) > --build-id generates a unique "build id" for the build. It can use several different algorithms to do this. The BFD linker uses sha1 by default while LLD uses a "fast" algorithm. The difference is that the fast algorithm generates a shorter build id. This shouldn't matter in general, but there are some tools out there that expect the build id to be of a certain length, i.e. the BFD style's length, because BFD is more prevalent. The obvious response "well, why don't they just change the expected length?" is difficult in all situations. (Once an assumption is made, it's hard to backtrack.) You can add this if you like: Reviewed-by: Bill Wendling > > --- > > arch/riscv/kernel/vdso/Makefile | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/riscv/kernel/vdso/Makefile b/arch/riscv/kernel/vdso/Makefile > > index cb8f9e4cfcbf..0cfd6da784f8 100644 > > --- a/arch/riscv/kernel/vdso/Makefile > > +++ b/arch/riscv/kernel/vdso/Makefile > > @@ -44,7 +44,7 @@ SYSCFLAGS_vdso.so.dbg = $(c_flags) > > $(obj)/vdso.so.dbg: $(src)/vdso.lds $(obj-vdso) FORCE > > $(call if_changed,vdsold) > > SYSCFLAGS_vdso.so.dbg = -shared -s -Wl,-soname=linux-vdso.so.1 \ > > - -Wl,--build-id -Wl,--hash-style=both > > + -Wl,--build-id=sha1 -Wl,--hash-style=both > > > > # We also create a special relocatable object that should mirror the symbol > > # table and layout of the linked DSO. With ld --just-symbols we can then > > > > base-commit: c2c81bb2f69138f902e1a58d3bef6ad97fb8a92c > > -- > > 2.29.2 > > > > -- > > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20201108203737.94270-1-natechancellor%40gmail.com. > > > > -- > Thanks, > ~Nick Desaulniers