[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180321014635.29113-4-labbott@redhat.com>
Date: Tue, 20 Mar 2018 18:46:35 -0700
From: Laura Abbott <labbott@...hat.com>
To: Andy Lutomirski <luto@...nel.org>, mjw@...oraproject.org,
"H . J . Lu" <hjl.tools@...il.com>,
Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Laura Abbott <labbott@...hat.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
X86 ML <x86@...nel.org>, linux-kernel@...r.kernel.org,
Nick Clifton <nickc@...hat.com>,
Cary Coutant <ccoutant@...il.com>
Subject: [RFC PATCH 3/3] x86/vdso: Add build salt to the vDSO
The vDSO is linked separately from the kernel and modules. Ensure it picks
up the comment section, if available.
Signed-off-by: Laura Abbott <labbott@...hat.com>
---
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 <asm/vdso.h>
+#include <generated/build-salt.h>
/*
* 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
Powered by blists - more mailing lists