]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: Add build salt to the vDSO
authorBastian Blank <waldi@debian.org>
Thu, 18 Jun 2026 16:12:30 +0000 (18:12 +0200)
committerPaul Walmsley <pjw@kernel.org>
Thu, 25 Jun 2026 18:05:05 +0000 (12:05 -0600)
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: Bastian Blank <waldi@debian.org>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://patch.msgid.link/ajQY7n0an0YwQ--j@steamhammer.waldi.eu.org
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/vdso/note.S

index 3d92cc956b95b92b592c8c4f5ee07445031a7992..69bfe48be037a2d4b5a410ace5c63ecc16c05024 100644 (file)
@@ -4,6 +4,7 @@
  * Here we can supply some information useful to userland.
  */
 
+#include <linux/build-salt.h>
 #include <linux/elfnote.h>
 #include <linux/version.h>
 #include <asm/assembler.h>
@@ -12,4 +13,6 @@ ELFNOTE_START(Linux, 0, "a")
        .long LINUX_VERSION_CODE
 ELFNOTE_END
 
+BUILD_SALT
+
 emit_riscv_feature_1_and