Received: by 10.213.65.68 with SMTP id h4csp881234imn; Tue, 20 Mar 2018 18:48:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELtGp1Du4vns6Z986pGOJ3ZdvKGrMit2Yh36nmt1KDUuMAHT9tGGd8rbPkxQH+w+3KYRTUcn X-Received: by 2002:a17:902:2805:: with SMTP id e5-v6mr10741517plb.89.1521596887124; Tue, 20 Mar 2018 18:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521596887; cv=none; d=google.com; s=arc-20160816; b=vK/DQXLXcz7VAWoL34QnVEujcDVMiQVamkyJiVZOVGzSwvFh/9FrTDzj0GoO7zNgUq m8aP3W8OJ2KenxYfRp+Bxvtp3nBKMDbL55BqablDqUqiqzVZh8am1+EnoKtEofLeLhrq C/TQSlV+0nHKypE61joWGja0Uli1Zx96cCrnmprAkWoGkt7LRRWdEgwVVywrWjga7yaO wdywXWMtWbk4QuWZUOEGtcoLTkzysOIV/y/Kinloy3NqNSINArBRIxG2u94vtjEAEcGz t5wdZ360HW++9yKViCGQJP92i4pmSQubnQnGukGjR+wSCHyF3aDxsGLej5UqXBj7wcWY fECw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=DFLqyWpgN4giTrWyrewRZLNA77mg3sTVIO/uCHCgij4=; b=M+BVcq5br8S20KK7B2aAScryQPpTpqo79TjKIC9BKEaHY9KYBvU+5Dgxl3JXzxab+1 aZcEpj9K6bk9HDx4D03eO2JQUmHvjB3YLcBBky3ICbY6fn/uwxGbhfJoTgdHIwOPhYaJ sbBjHbJvMutXhn9URRCnxBo3fo2Li40WNOcBWvlk/GOH9gLAyaOZec4TUAelRkGVj0ni P2FCaZvbGpVO44DxCOH7EKQsBzWZamPVsl9nmqAgU8mghDMk2L/q1IITntcuoohl0RQ4 zA14+tBC6wJOhoeKU4vfsK1BnfCmU4emL2Kl0ZP/Prx7Pu0fMlPrSHFtz2BStGTVO0D6 NyxQ== 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 s18si2031732pgd.111.2018.03.20.18.47.53; Tue, 20 Mar 2018 18:48:07 -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 S1751854AbeCUBq5 (ORCPT + 99 others); Tue, 20 Mar 2018 21:46:57 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:33557 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbeCUBqq (ORCPT ); Tue, 20 Mar 2018 21:46:46 -0400 Received: by mail-pl0-f68.google.com with SMTP id c11-v6so2203310plo.0 for ; Tue, 20 Mar 2018 18:46:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DFLqyWpgN4giTrWyrewRZLNA77mg3sTVIO/uCHCgij4=; b=VwBB/t2JZ78UwfW7KoP2B0xlOrEetc4emoGGV3Ja8WJFt7VWP//IB3IIXXjnRbG8QG E2ApmNOxtNl9li4b5uEofrnGt8/acgg0ohdZ1/O8nDiPfk8PCPwIkBhwJ1avy5IMM2Do Bp0w69GKjMBqwwq1Z/zTjqD7mDfrkV7Ru3M8RZufNDFpGW33+SgkZCP5C9zUtjoLMRaK Jfy9ErlH57kCXTGDWZGv2sJHumadBtqwETTdG7fDwJ4EhcQ1VgEKYjbSeXwdM10XWfxV WQBBLx4linlk31L59wzNcULDsBF8NfOI4+PJGrRYez8Yc/z2JmtNcAEZUHEDnmBrhmEx gQdA== X-Gm-Message-State: AElRT7GntZJs4coLdB2467dcROB73plQ/RGwbMMpQvHmXJCM6VbpKSGY pYwtDlFvE/lIuCV51Sq/sRIjoQ== X-Received: by 2002:a17:902:bc41:: with SMTP id t1-v6mr18547001plz.56.1521596806170; Tue, 20 Mar 2018 18:46:46 -0700 (PDT) Received: from localhost.net ([2601:602:9802:a8dc::6a4d]) by smtp.gmail.com with ESMTPSA id x4sm6025787pfb.46.2018.03.20.18.46.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Mar 2018 18:46:45 -0700 (PDT) From: Laura Abbott To: Andy Lutomirski , mjw@fedoraproject.org, "H . J . Lu" , Masahiro Yamada Cc: Laura Abbott , Linus Torvalds , X86 ML , linux-kernel@vger.kernel.org, Nick Clifton , Cary Coutant Subject: [RFC PATCH 3/3] x86/vdso: Add build salt to the vDSO Date: Tue, 20 Mar 2018 18:46:35 -0700 Message-Id: <20180321014635.29113-4-labbott@redhat.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180321014635.29113-1-labbott@redhat.com> References: <20180321014635.29113-1-labbott@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The vDSO is linked separately from the kernel and modules. Ensure it picks up the comment section, if available. Signed-off-by: Laura Abbott --- I only added x86 in this series because that's my primary interest. Other arches could easily follow suit if they care. --- arch/x86/entry/vdso/vdso-layout.lds.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/entry/vdso/vdso-layout.lds.S b/arch/x86/entry/vdso/vdso-layout.lds.S index acfd5ba7d943..ab72f3c87ebb 100644 --- a/arch/x86/entry/vdso/vdso-layout.lds.S +++ b/arch/x86/entry/vdso/vdso-layout.lds.S @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ #include +#include /* * Linker script for vDSO. This is an ELF shared object prelinked to @@ -95,6 +96,8 @@ SECTIONS .altinstructions : { *(.altinstructions) } :text .altinstr_replacement : { *(.altinstr_replacement) } :text + ID_TAG + /DISCARD/ : { *(.discard) *(.discard.*) -- 2.16.2