* [PATCH] mips: Add build salt to the vDSO
@ 2026-06-18 16:12 Bastian Blank
2026-06-29 17:12 ` Thomas Bogendoerfer
0 siblings, 1 reply; 2+ messages in thread
From: Bastian Blank @ 2026-06-18 16:12 UTC (permalink / raw)
To: Thomas Bogendoerfer, linux-mips, linux-kernel
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>
---
I was not able to properly test this change, due to unavailable
toolchain.
arch/mips/vdso/elf.S | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/mips/vdso/elf.S b/arch/mips/vdso/elf.S
index a25cb147f1ca..821fcffe7655 100644
--- a/arch/mips/vdso/elf.S
+++ b/arch/mips/vdso/elf.S
@@ -8,6 +8,7 @@
#include <asm/isa-rev.h>
+#include <linux/build-salt.h>
#include <linux/elfnote.h>
#include <linux/version.h>
@@ -15,6 +16,8 @@ ELFNOTE_START(Linux, 0, "a")
.long LINUX_VERSION_CODE
ELFNOTE_END
+BUILD_SALT
+
/*
* The .MIPS.abiflags section must be defined with the FP ABI flags set
* to 'any' to be able to link with both old and new libraries.
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mips: Add build salt to the vDSO
2026-06-18 16:12 [PATCH] mips: Add build salt to the vDSO Bastian Blank
@ 2026-06-29 17:12 ` Thomas Bogendoerfer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2026-06-29 17:12 UTC (permalink / raw)
To: Bastian Blank, linux-mips, linux-kernel
On Thu, Jun 18, 2026 at 06:12:21PM +0200, Bastian Blank wrote:
> 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>
> ---
> I was not able to properly test this change, due to unavailable
> toolchain.
>
> arch/mips/vdso/elf.S | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/mips/vdso/elf.S b/arch/mips/vdso/elf.S
> index a25cb147f1ca..821fcffe7655 100644
> --- a/arch/mips/vdso/elf.S
> +++ b/arch/mips/vdso/elf.S
> @@ -8,6 +8,7 @@
>
> #include <asm/isa-rev.h>
>
> +#include <linux/build-salt.h>
> #include <linux/elfnote.h>
> #include <linux/version.h>
>
> @@ -15,6 +16,8 @@ ELFNOTE_START(Linux, 0, "a")
> .long LINUX_VERSION_CODE
> ELFNOTE_END
>
> +BUILD_SALT
> +
> /*
> * The .MIPS.abiflags section must be defined with the FP ABI flags set
> * to 'any' to be able to link with both old and new libraries.
> --
> 2.53.0
applied to mips-fixes
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-29 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 16:12 [PATCH] mips: Add build salt to the vDSO Bastian Blank
2026-06-29 17:12 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox