[PATCH] sparc: Add build salt to the vDSO

From: Bastian Blank

Date: Thu Jun 18 2026 - 12:13:25 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>
---
I was not able to properly test this change, due to unavailable
toolchain.

arch/sparc/vdso/vdso-note.S | 3 +++
arch/sparc/vdso/vdso32/vdso-note.S | 3 +++
2 files changed, 6 insertions(+)

diff --git a/arch/sparc/vdso/vdso-note.S b/arch/sparc/vdso/vdso-note.S
index 79a071e4357e..79423170118f 100644
--- a/arch/sparc/vdso/vdso-note.S
+++ b/arch/sparc/vdso/vdso-note.S
@@ -3,6 +3,7 @@
* Here we can supply some information useful to userland.
*/

+#include <linux/build-salt.h>
#include <linux/uts.h>
#include <linux/version.h>
#include <linux/elfnote.h>
@@ -10,3 +11,5 @@
ELFNOTE_START(Linux, 0, "a")
.long LINUX_VERSION_CODE
ELFNOTE_END
+
+BUILD_SALT
diff --git a/arch/sparc/vdso/vdso32/vdso-note.S b/arch/sparc/vdso/vdso32/vdso-note.S
index e234983cf0d8..ac0ac0d13e4f 100644
--- a/arch/sparc/vdso/vdso32/vdso-note.S
+++ b/arch/sparc/vdso/vdso32/vdso-note.S
@@ -3,6 +3,7 @@
* text. Here we can supply some information useful to userland.
*/

+#include <linux/build-salt.h>
#include <linux/uts.h>
#include <linux/version.h>
#include <linux/elfnote.h>
@@ -10,3 +11,5 @@
ELFNOTE_START(Linux, 0, "a")
.long LINUX_VERSION_CODE
ELFNOTE_END
+
+BUILD_SALT
--
2.53.0