[PATCH] loongarch: Add build salt to the vDSO

From: Bastian Blank

Date: Thu Jun 18 2026 - 12:16:09 EST


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@xxxxxxxxxx>
---
arch/loongarch/vdso/elf.S | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/loongarch/vdso/elf.S b/arch/loongarch/vdso/elf.S
index 9bb21b9f9583..d6e000003b85 100644
--- a/arch/loongarch/vdso/elf.S
+++ b/arch/loongarch/vdso/elf.S
@@ -7,9 +7,12 @@

#include <asm/vdso/vdso.h>

+#include <linux/build-salt.h>
#include <linux/elfnote.h>
#include <linux/version.h>

ELFNOTE_START(Linux, 0, "a")
.long LINUX_VERSION_CODE
ELFNOTE_END
+
+BUILD_SALT
--
2.53.0