Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1411083imm; Wed, 23 May 2018 15:54:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoyPw38j4FCKpxtPdqxSqYwaPvvzRNOGJgAw+pLZy2CDMHyyAi3BQrH78p80n9cFTh+V+RJ X-Received: by 2002:a63:710b:: with SMTP id m11-v6mr3745448pgc.326.1527116086157; Wed, 23 May 2018 15:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527116086; cv=none; d=google.com; s=arc-20160816; b=oqbAQd8jS7IWrROeQdr/Y/hIJTaQVrZIw0cMsc94ccMaxt4INjZ1L8oGylFHn5AlHC kAtzfQ9NLR93KPB1GSQUSEJtkkeSJl0WVe2TA0f37HeFW3tVgqD0xYsLne3OI6ghRoWj bwIE/Ao6/phsnCZ+PRUfFpUNFMpkiauqtB756UbN/5MVKq0Ph4+m6DwdW4T/BSZRWcCu OJn+YvE3wXIg6FiEByxe/zuGwm+SDGLyYmuAm9DjNcIDLJWlGVdWtAfw01i1oWGnJIr+ t0EUtM7VuxqqZHy78wTewAXyZ44Ow2FMuSDlYnfLF7FldxhV8FWacQQtnADYsjF6RaJH pPyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=6apPQcXptxv/r9vHofDrErPvesiB+0T/0SFv6IQteIk=; b=oIn4mW7G6IjRBKwKY44BHOUb3ey72eWGB/WUluP/dZbMN/9mMJP6kxi3dmoMLebm5Y SqksgkMPtQKHOOH3QGTOfCalgg+V+z22cCFVrcTWsJscyrehCSNQWJ0zeNpDvL40dv8u qz1Rw3fDZ1YqAvtrHPU+W/bDBns4yyxUXT/0j3kAv/t+nJp9jRVXVQfXfsSgZ4pb+sry 64ddmoh66bIQ+6YO9+cLfTTlqoF7m6ITD+UmtXKbXxNvT1+sQe9l8Z0J+SL2mBojv6BY gwv5CQEUymxsP+VScp5jq11KxsMK13K67spRkt1ypGJ9+n4vWUELyW523G4BqPqqX9rB 7VtA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t28-v6si19760728pfi.221.2018.05.23.15.54.01; Wed, 23 May 2018 15:54:46 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934990AbeEWWxs (ORCPT + 99 others); Wed, 23 May 2018 18:53:48 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41215 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934516AbeEWWxp (ORCPT ); Wed, 23 May 2018 18:53:45 -0400 Received: by mail-pg0-f68.google.com with SMTP id d14-v6so6460079pgv.8 for ; Wed, 23 May 2018 15:53:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6apPQcXptxv/r9vHofDrErPvesiB+0T/0SFv6IQteIk=; b=Bl+21foqkDxQUvt4j1NijrqpDYGXfn8clU/JGjKRpnXzMjxsDhDXeESPZJOLC9CEys xE2iIHyC82u/Fm6lAS/1RS0QZOLVHnNotAtEbmW7fb2txCTGJE4g99jteLRdNEk0oByf FzYNBJp+/F+ZEZvTfgIrV0+p2ehsYZhsYJ/EcxMPLXBtF56IBULNA6DnkmNa6c82Yx8Q sEhRnFQ91NgpusV4HdM8vLhuxdcVVczxheXj1tuF1xhKxstC5XEVjvrAukYmU8JdJLHK gDgGIWUDE4jtQgmHmemI/cvjGCJX3yGlXIBrPuqxm51s2+104hcGXAJ0eXRSeDpR+bOR 4MzQ== X-Gm-Message-State: ALKqPweYdSlbH1siReF5dghxcOTFkxvNlXZOuFAbyR65iJZtF8E0exnl ACpfAYccomF5Ep3lW66HnTElqA== X-Received: by 2002:a63:66c3:: with SMTP id a186-v6mr3693496pgc.408.1527116025258; Wed, 23 May 2018 15:53:45 -0700 (PDT) Received: from localhost.localdomain ([2601:602:9802:a8dc::4dc5]) by smtp.gmail.com with ESMTPSA id i72-v6sm27040536pgd.60.2018.05.23.15.53.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 15:53:44 -0700 (PDT) Subject: Re: [PATCHv3 2/2] x86/vdso: Add build salt to the vDSO To: Andy Lutomirski Cc: Mark Wielaard , "H. J. Lu" , Masahiro Yamada , Linus Torvalds , X86 ML , LKML , Nick Clifton , Cary Coutant , linux-kbuild@vger.kernel.org References: <20180523001939.9431-1-labbott@redhat.com> <20180523001939.9431-3-labbott@redhat.com> From: Laura Abbott Message-ID: <15dcff14-ea1b-18c8-4cd1-06586cf6f05b@redhat.com> Date: Wed, 23 May 2018 15:53:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/22/2018 05:33 PM, Andy Lutomirski wrote: > On Tue, May 22, 2018 at 5:19 PM Laura Abbott wrote: > > >> The vDSO is linked separately from the kernel and modules. Ensure it picks >> up the comment section, if available. > > Did you end up preferring this to just sticking the kernel version in a > .comment in the vDSO for some reason? > Actually I remember now why this is necessary: there is not a simple way to encode a string into a linker file as it has to be spit out byte by byte. The autogeneration was the easiest way to make that happen. Maybe there's some horrific c preprocessing or other generation that could happen but I doubt that's any worse than the generated linker script. Thanks, Laura