Return-Path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:35128 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751147AbeC2SBY (ORCPT ); Thu, 29 Mar 2018 14:01:24 -0400 Received: by mail-pg0-f65.google.com with SMTP id j3so3548540pgf.2 for ; Thu, 29 Mar 2018 11:01:24 -0700 (PDT) From: Laura Abbott Subject: [RFCv2 PATCH 3/3] x86/vdso: Add build salt to the vDSO Date: Thu, 29 Mar 2018 11:01:12 -0700 Message-Id: <20180329180112.11055-4-labbott@redhat.com> In-Reply-To: <20180329180112.11055-1-labbott@redhat.com> References: <20180329180112.11055-1-labbott@redhat.com> Sender: linux-kbuild-owner@vger.kernel.org List-ID: 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 , linux-kbuild@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 --- v2: Updated name --- 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..7c78dd39aae8 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 + BUILD_ID_SALT + /DISCARD/ : { *(.discard) *(.discard.*) -- 2.16.2