Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp349109imm; Tue, 3 Jul 2018 20:58:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdycOQLnm8MCs2FnjJapmjKGRkX6wkJGPKBP7zFmvPpQkkza+FWLTfMARjSDeG03XP4lQX9 X-Received: by 2002:a62:968f:: with SMTP id s15-v6mr427888pfk.191.1530676709680; Tue, 03 Jul 2018 20:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530676709; cv=none; d=google.com; s=arc-20160816; b=fo3TqFcr9ULpW2wXkLc6nACy2bi8RdzTGOpg8WD+SzatUrgN8FzUBggyJFp2cPO4C/ oZlJPSDjpkYGr6o/ju12dKq7WmTX6C4Bz4u6ZthSBlgo7TwH10fDWYHpWQea5rCCR6la 84hNMOB8WerDsFO1RdzSvFqJ6UgdO/MuqcEXHqKu+kwUyY0ki0oAh3uaZXUnitsJe3GN 0QEi5f8vQBJMlJNPeakvmQZkNjOlJKH9XyXIflhdec9Jy55kdMewS5dg+N4+xOKyOASx 5hmu/1Y1+3ymoiJBWLqs6/gJhTCzVeA0qJuQ0ME4udlB6FhR8u3LBzCh+Dc2DtccKwlt VnSA== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=HHAOy/SMN8/QxWH84Hw8IeVkBIXYb66mTKEKXAGTiJw=; b=pCVQY3/+t+z6ATd2RDC/atQin8hcZ3KJsT8Hrm8TvD/6pf7kdTYMSmVfnrwCSK0bsq X6tlBM07RqqhTiWdUqhiG0mHh5hA+JJbFvKmfeB86Z7TungPW40fqUF43Kw2/oZroTkg mC2tDSLhug6rbgoEN+mZulhrPzRRMbLA5iStUUMItMsOLkmGidmnOTgjvJsauzuKUcP2 Pq1TAbdUOVbIismpZAoA4f2p3mjx07wfDympAUoQFiZPjfFCwGLhSYcDMx8mOLr/4Kaa vmQkSdGH8X8YEZHcHzFL6wgeljAJmyMKgZUAQRr3Ixh+vba8bVl+McQKN44cm7VBxiW9 YH4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=XmH6AMrj; 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 33-v6si2572319plk.299.2018.07.03.20.58.15; Tue, 03 Jul 2018 20:58:29 -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=XmH6AMrj; 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 S932898AbeGDD4Z (ORCPT + 99 others); Tue, 3 Jul 2018 23:56:25 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:34432 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932434AbeGDD4X (ORCPT ); Tue, 3 Jul 2018 23:56:23 -0400 Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w643uHAf002264; Wed, 4 Jul 2018 12:56:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w643uHAf002264 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1530676577; bh=HHAOy/SMN8/QxWH84Hw8IeVkBIXYb66mTKEKXAGTiJw=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=XmH6AMrjNP42ayPn9c/Z0GvubDsiIyO3N4qQ9MmGEe7wdqvVEZAMMyQMPonmmcGqJ nQxghS/KhVnrBJYG0dyQVROdl5UfSqapePstgUMhsDwE5YcTJoVMIR8wJVyMkJjaEz mf66a23/CWcf/GOY2JcBVvLlIMojy8c/gcMm+O+IEeeZJq9z0JuUmaChve1Y+3Syqo VZ+O/DjMrdWPy44pvg6EHMIT0Nxo9G0ucjOHIf90wI5PxhAHJKVm61p1Wqn5MH1nQQ uGupoTFIkX9vnhvF0lY7EWn59i8NFTOg4pXa/PQeaDLCUsMmMxWS6l+eeBK4gb48MA aLFg5KV3yVu+Q== X-Nifty-SrcIP: [209.85.213.51] Received: by mail-vk0-f51.google.com with SMTP id t4-v6so2241054vke.9; Tue, 03 Jul 2018 20:56:17 -0700 (PDT) X-Gm-Message-State: APt69E3OccDuAfBBpulf7xdADTZbtFLxcfNQARKNpnDieYfop5iDIqZ7 mboFyBgGz3o2A6zbF7kvLQWSzDtlGxdf2rX6v5w= X-Received: by 2002:a1f:2348:: with SMTP id j69-v6mr163481vkj.160.1530676576553; Tue, 03 Jul 2018 20:56:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:3308:0:0:0:0:0 with HTTP; Tue, 3 Jul 2018 20:55:35 -0700 (PDT) In-Reply-To: <20180703233430.14416-5-labbott@redhat.com> References: <20180703233430.14416-1-labbott@redhat.com> <20180703233430.14416-5-labbott@redhat.com> From: Masahiro Yamada Date: Wed, 4 Jul 2018 12:55:35 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv5 4/4] arm64: Add build salt to the vDSO To: Laura Abbott Cc: Mark Wielaard , "H . J . Lu" , Catalin Marinas , Will Deacon , Andy Lutomirski , Linus Torvalds , X86 ML , Linux Kernel Mailing List , Nick Clifton , Cary Coutant , Linux Kbuild mailing list , linuxppc-dev , Michael Ellerman , linux-arm-kernel 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 Hi. 2018-07-04 8:34 GMT+09:00 Laura Abbott : > > The vDSO needs to have a unique build id in a similar manner > to the kernel and modules. Use the build salt macro. > > Signed-off-by: Laura Abbott > --- > v5: I was previously focused on x86 only but since powerpc gave a patch, > I figured I would do arm64 since the changes were also fairly simple. > --- > arch/arm64/kernel/vdso/note.S | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm64/kernel/vdso/note.S b/arch/arm64/kernel/vdso/note.S > index b82c85e5d972..2c429dfd3f45 100644 > --- a/arch/arm64/kernel/vdso/note.S > +++ b/arch/arm64/kernel/vdso/note.S > @@ -22,7 +22,10 @@ > #include > #include > #include > +#include > > ELFNOTE_START(Linux, 0, "a") > .long LINUX_VERSION_CODE > ELFNOTE_END > + > +BUILD_SALT; I think this works, but I prefer no-semicolon in assembly files. For coding consistency, I want ';' as statement delimiter in .c files. But, only new line after each statement in .S files. For example, in arch/x86/xen/xen-head.S I see no semicolon after ELFNOTE(). I found this: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473k/dom1359731141352.html It says ';' starts a comment line although it is not the case of GAS. Same for 3/4. -- Best Regards Masahiro Yamada